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

Record lock message

Status
Not open for further replies.

poliv

Programmer
Jun 3, 2000
48
US
I have my database file in an NT server, and when a user try to modify a record that is locked by another user, I want to display a personalized message to that user, and not the default message.

Thanks.
 
If you can find out the error number, you can trap it using the 'on error' event of the form:

This example traps the error that occurs when you enter a duplicate primary key value:

Private Sub Form_Error(DataErr As Integer, Response As Integer)
If (DataErr = 3022) Then
MsgBox "You have entered a duplicate primary key value"
Response = acDataErrContinue
End If
End Sub
Mike Rohde
rohdem@marshallengines.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top