how to stop this msg

W

wehadyxp

i have field number when i put word he give me message the value inpu
not good for this field
i want to change this message and make messag
 
W

wehadyxp

yes i konw but i want change the message and put another message
the user not undersatnd this message to " you maust be unsert number
 
F

fredg

i have field number when i put word he give me message the value input
not good for this field
i want to change this message and make message

You wish to change the built-in incomprehensible message for a more
user friendly message?

Here's how you can find the correct error and show your own message
for any of the form level errors.

First code the Form's Error event:

MsgBox "Error#: " & DataErr ' Display the error number
Response = acDataErrDisplay ' Display Default message

Then open the form and intentionally make that error.

The message box will display the error number and the default error
message.

Next, go back to the error event and change that code to:

If DataErr = XXXX Then
Response = acDataErrContinue ' Don't display the default message
MsgBox "Please enter data in all required fields."
Else
MsgBox "Error#: " & DataErr
Response = acDataErrDisplay ' Display Default message
End If

where XXXX is the error number.
 
Top