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!

Error codes for secured database........

Status
Not open for further replies.

mikehoot

Technical User
Oct 18, 2001
97
I use the following code to change the access error message for duplicate key values.

Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr = 3022 Then
MsgBox "The Label Code you entered is already in use. Please select another code."
Response = acDataErrContinue
Else
Response = acDataErrDisplay
End If
End Sub

I would like to do the same for errors when a user in a secured database does not have permissions for a certain event. Does anyone have any code, orknow the error numbers of this type of event?

Also, if there is more than one error number, how can I show this in code easily?

Thanks B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top