Hi
I am trying to find out the error code for the standard Access message of "You are about to delete 1 records, are you sure you want to delete this?". This is presented to a user when they try to delete a record. I want to trap this error so that i can find out what the error number so that I can display my own customised message. I have done the following:
Added the following the form I am trying to write the customised message for.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Debug.Print "DataErr = "; DataErr
End Sub
I can't seem to trap the error. I have looked at microsofts articles and as I far as I can see, adding this code to the form and then trying to delete a record should produce the error message in the immediate window....this isn't happening for some reason and I can't see where I am going wrong. Any advice greatly appreciated in advance.
Thanks
Miow
I am trying to find out the error code for the standard Access message of "You are about to delete 1 records, are you sure you want to delete this?". This is presented to a user when they try to delete a record. I want to trap this error so that i can find out what the error number so that I can display my own customised message. I have done the following:
Added the following the form I am trying to write the customised message for.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Debug.Print "DataErr = "; DataErr
End Sub
I can't seem to trap the error. I have looked at microsofts articles and as I far as I can see, adding this code to the form and then trying to delete a record should produce the error message in the immediate window....this isn't happening for some reason and I can't see where I am going wrong. Any advice greatly appreciated in advance.
Thanks
Miow