Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove record from queue in multi user enviroment 1

Status
Not open for further replies.

wokkie

Programmer
May 9, 2003
52
GB
I have a database where the users work from a queue. They hit a button and the next record opened in a form.

I have an attibute "open" which I set to true when the user opens the form, using recordsets and update.

The problem is that the update is too slow and more than one user can open the same record if the hit the button at the same time.

Is there a better way to prevent more than one user opening each record?

I am using Access 2000 on NT4 with about 5 concurrent users.

Thanks

Ian
 
Can't you use the BeginTrans and CommitTrans methods?

You would call BeginTrans before getting the next record in the queue and, assuming this worked, you would do the update then call CommitTrans. If it failed you'd call RollBack and try again.

Take a look at the help on these methods and it should solve your problem.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top