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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assign one record at a time in a multiuser form

Status
Not open for further replies.

neeko1226

MIS
Jul 24, 2003
82
US
I'm trying to avoid record locking in a multiuser Access form. My thought is to assign one record in the table to the analyst by populating a field with their ID when they open the form. When they move to the next record, the form will close and then re-open looking for the next available record with where ID field is null (not being reviewed by another user). Here's the code I'm trying to get to work:
DoCmd.RunSQL
"SELECT TOP 1 tblQueue.QARep " _
& " FROM tblQueue" _
& " WHERE (((tblQueue.QARep) Is Null)" _
& " SET tblQueue.QARep = [Forms]![frmLogin]![txtLogin]"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top