stop error messages for dates

J

julie

hi,
How do I stop the error messages from popping up that
let the user know they have inputted the date
incorrectly? I would like to insert my own error
message...
thanks!
 
F

fredg

hi,
How do I stop the error messages from popping up that
let the user know they have inputted the date
incorrectly? I would like to insert my own error
message...
thanks!

Trap the error in the Form's Error event and write you're own message.

If DataErr = ? Then
MsgBox "Bad entry"
Response = acDataErrContinue
Else
Response = acDataErrDisplay
End If
 

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