Navigation button error message

K

Kyle

where do I go to change the Microsoft Access error message
from "Can't go to the specified record" to "End of record,
press Esc to continue"

Thanks.
 
F

fredg

where do I go to change the Microsoft Access error message
from "Can't go to the specified record" to "End of record,
press Esc to continue"

Thanks.

Code the Form's Error Event:
if DataErr = 2105 Then
MsgBox "End of records"
Response = acDataErrContrinue
Else
MsgBox "Error #: " & DataErr
Response = acDataErrDisplay
End If

You shouldn't have to press esc. at all.

I added an Else, so that if you get other errors you will first get a
message with the actual error number, then the default Access error
message.
You can then trap that error using the method above.
I hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top