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 / September 2006

Tip: Looking for answers? Try searching our database.

determining if any records being edited

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jb - 31 Aug 2006 04:21 GMT
Hello,
I need to figure a way of determining if any records in a table are being
edited before running a few different update routines on the table (Access
2000, program MDB on local C, data MDB on network drive).  I have a form
that lists out all the records in a small table (<200) and different
machines can edit different records.  At a particular time, I need to
compare and update these records based on a new set of data I query out of a
SQL server database.  I do not want to run the routines (which are an Update
query on the whole table and a do while loop on each record in the table).
Any ideas on how to do this?  I thought of maybe trying to issue an
OpenRecordset command with dbDenyWrite + dbDenyRead as Options and then test
if Err=0 or not.  If not 0, then someone is editing a record.  If = 0, I
would close and reopen recordset normally and do my stuff.  Sounded like a
plan but I do not know if this would work.  Any thoughts?

Thanks,

John
Mary Chipman [MSFT] - 11 Sep 2006 16:46 GMT
Instead of looping through the records, try using an explicit
transaction and set a timeout. You can check for errors and either
commit or rollback. You could put it in a loop so that if it times out
and rolls back you restart the transaction.

--Mary

>Hello,
>I need to figure a way of determining if any records in a table are being
[quoted text clipped - 14 lines]
>
>John
 
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.