Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Multiuser / Networking / November 2004

Tip: Looking for answers? Try searching our database.

Splitting DB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Weste - 04 Nov 2004 19:59 GMT
All of the Access applications I have developed have been multi-user where
there was a FE and a BE.  I have inherited a single-user app.  Even though
this is a single user app, it seems like it is a good idea to split the app
into a FE and BE.  To me, this simplifies code changes.  In addition, if an
app becomes corrupted, it is usually in the FE vs the BE.  I would appreciate
comments as to whether I should leave the app as is or go ahead and split it.
Thanks.

Pam
Roger Carlson - 04 Nov 2004 20:23 GMT
If YOU are the single user using the app, I wouldn't bother.  However, if
the single-user is someone else, then it is not really a single-user --
there are two of you -- so you should split it.  Also, if the possibility
exists that it might *someday* become multi-user, then split it.

Signature

--Roger Carlson
 Access Database Samples: www.rogersaccesslibrary.com
 Want answers to your Access questions in your Email?
 Free subscription:
 http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

> All of the Access applications I have developed have been multi-user where
> there was a FE and a BE.  I have inherited a single-user app.  Even though
[quoted text clipped - 5 lines]
>
> Pam
Weste - 04 Nov 2004 20:39 GMT
Roger,

Thanks for the info.  Yes you are right - it really is not a single user app
since I am the 2nd user.  I will go ahead and split the app.

> If YOU are the single user using the app, I wouldn't bother.  However, if
> the single-user is someone else, then it is not really a single-user --
[quoted text clipped - 14 lines]
> >
> > Pam
Ray - 07 Nov 2004 16:54 GMT
Roger,

I am new to Access.  Could you please advise why the database should be
split into FE & BE for multi-user environment.

Thanks,

Ray

> If YOU are the single user using the app, I wouldn't bother.  However, if
> the single-user is someone else, then it is not really a single-user --
[quoted text clipped - 16 lines]
>>
>> Pam
Rick Brandt - 07 Nov 2004 17:09 GMT
> Roger,
>
> I am new to Access.  Could you please advise why the database should be
> split into FE & BE for multi-user environment.

Unlike many other types of shared files, an Access file is not completely
loaded into memory when opened, nor are all writes to the file only
committed to disk when the file is closed or when the user explicitly
asks for it.  While using the front end file Access is constanly
retreiving pieces of the file from disk and writing changes back to disk.
With multiple users in the same file this can often lead to conflicts and
ultimately to corruption.

While splitting has long been recommended, Access 97 actually tolerated
multiple people using a shared file much better than the newer versions
and many people "got away with" doing it that way.

In addition, there are often times when the developer might
manipulate objects during runtime (like changing the SQL of a QueryDef) to
perform a particular task. This creates problems if more than one
person is using the same file.  I do this all the time to manipulate
PassThrough queries against ODBC connections to server databases.

>> [quoted text muted]

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

Roger Carlson - 08 Nov 2004 13:32 GMT
> Roger,
> I am new to Access.  Could you please advise why the database should be
> split into FE & BE for multi-user environment.

There are many reasons to do this:

1) Probably the most important is that since the introduction of Access
2000, you cannot make any modifications to the application (forms, reports,
or code) while anyone else has the file open.  So to modify your app, you
either have to kick everyone else out or work on an off-line copy.

2) Working on an off-line copy presents a problem, though.  Since in an
un-split database, both the data and the application reside in the same
physical file, any data added or modified in the production database won't
be in your development copy when you put it back into production.  So again,
either everyone has to stay out while you modify the application or you have
to find some way to copy new data into your development copy before putting
it into production.  Neither option is very viable.

3) Having a split database allows you to work on your application with dummy
data.  I usually have a test back-end that I link the front-end to while
doing development.  Then I can add and modify records without jeopardizing
real production data.  When I have finished testing, I link the development
copy back to the production data, then deploy it into production.

4) Applications where the FE is stored on the individual workstation while
the BE resides on a server is far more efficient and is the recommended
topology for multi-user apps.  This will also make your application far more
stable.

Now, having the FE on each workstation also has it's problems.  Chief of
which is how to keep all those front-ends synchronized -- that is, how do
you push it out to everyone's machines to make certain all the users have
the same copy.  I have developed a couple of solutions.  They can be found
on my website (http://www.rogersaccesslibrary.com) as small sample databases
called: "KeepingDatabasesInSync.mdb" and "KeepingDatabasesInSync2.mdb".
Also, Tony Toews has developed his "Auto FE Updater"
(http://www.granite.ab.ca/access/downloadsindex.htm), which does much the
same thing.

Hope that helps.

Signature

--Roger Carlson
 Access Database Samples: www.rogersaccesslibrary.com
 Want answers to your Access questions in your Email?
 Free subscription:
 http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

> Roger,
>
[quoted text clipped - 25 lines]
> >>
> >> Pam
Ed Mulock - 16 Nov 2004 17:38 GMT
Right!!!!

And just who was the product manager who let them commit this travesty to
Access 97.

>> Roger,
>> I am new to Access.  Could you please advise why the database should be
[quoted text clipped - 80 lines]
>> >>
>> >> Pam
Tony Toews - 17 Nov 2004 21:38 GMT
> And just who was the product manager who let them commit this travesty to
>Access 97.

I assume you really meant A2000.   This feature was designed to stop
corruptions when multiple people were developing in the database at
the same time.   I encountered this problem myself a few times when
someone was doing light editing of an A97 FE MDB while I was also in
the A97 FE MDB.   He was just doing forms tweaking such as aligning
controls, changing forms captions and text on controls.   I was busy
doing standard developer work such as creating forms, reports and
changing VBA code.

This relatively minor concurrent work was enough to corrupt the FE a
few times.

So MS's decision is, in my opinion, understandable.

Tony
--
Tony Toews, Microsoft Access MVP
  Please respond only in the newsgroups so that others can
read the entire thread of messages.
  Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.