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
 
Top