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 / March 2004

Tip: Looking for answers? Try searching our database.

Handling multi users.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChrisM - 16 Mar 2004 18:53 GMT
When writing to an Access (Jet) database from VB.
What is the recomended technique for dealing with locks.
ie I am trying to write a record/table that is locked. Should I display a
'Record Locked - Retry?' dialog, or what. How do other people deal with
this?

ChrisM
MindwarpLtd - 16 Mar 2004 22:38 GMT
Hi,

The most common approach is to have a LockingFlag field (this should be
unique and be easy for your program to determine that it belongs to a
specific user, it can also be useful to add a time stamp).  e.g.
PaulJ-12-03-2004-18:37.03

The start of the locking process should be to check that the record aka flag
is available.  The flag can have three states 1. Blank / null / available,
2. In use / locked, 3, Locked / after system crash.

The first 2 states are easy enough to handle.
The 3rd state is generally left to the user, you could show the locking
flag.

Say use Simon was shown the PaulJ flag with yesterdays date, Simon would be
able to determine this was a system crash.  Or, if the time was near, he
could speak to Simon or use his own discretion.

If the flag was free, Simon would have the flag set to state 2.

Finishing with the record it would be set to state 1.

You could even write a feature to clear flags, that are in state 2.

Hope this helps

Signature

Jules.
-------- MDBSecure 2004 - 30 Day Trial -------
Makes MS Access Databases more secure, based on SECFaq.
Imports existing tables, produces jet connection string.
http://www.mindwarp-consultancy-software.com/mdbsecure-free-trial-download.html
Or  http://tinyurl.com/yupl5

 
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.