Custom Validation Text not appearing

  • Thread starter Thread starter wersh
  • Start date Start date
W

wersh

I created a Validation Text message for a required field, but the default
message appears instead. How do I correct this?
 
Hi wersh,
assuming the validation text is in the table, you can use error trapping to
hide the default message that shows when you are using the form.
That message comes from the form's error event and to trap it, you need to
put code in the form's error event something like this-->

If DataErr = 3314 Then
MsgBox "A value is required. Correct entry or press Esc to cancel."
Response = acDataErrContinue
End If


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 

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

Back
Top