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!

REcord Locking

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
US
Im using record locking in mydb, only thing is how do i in VBA tell if a record is locked ?


 
You could trap for error 3188 (record locked by another user).

Nick
 
using the record lock property of the form, im trying to use the editmode property of the recordset clone to tell me whether the current record is locked but getting no where just 0 after 0 after 0 after 0 after 0
 
I have something like this:

Dim db As Database
Dim rs As DAO.Recordset

on error goto lockErr

Set db = CurrentDb
Set rs = db.OpenRecordset("person", dbOpenDynaset)

rs.Edit

ok:

lockErr:
if err.number = 3188 then
exit sub
else
msgbox err.description
end if

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top