I have a text box with a validation rule and validation text. When entering a new record, if I put in invalid text, the validation text is displayed in a message box, but after clicking OK, another message box is displayed with:
-----------
myApplication (i bubble icon)
The value violates the validation rule for the field or record.
For example, you might have changed a validation rule without verifying whether the existing data matches the new validation rule.
Click undo to restore the previous value, or enter a new value that meets the validation rule for the field or records.
[OK] [Help]
-----------
After clicking OK here, if I try to tab out of the text box without changing anything, I get only the validation text message. So this 2nd message only happens the first time an entry is invalid. I've tried using the Form_Error event and DataErr 7753, but I still get this extra message. The table has no restrictions on the text field. Any idea how I can suppress this?
I just noticed that if I press Escape after the closing validation text message box, it saves the record with the invalid data! What am I doing wrong?
-----------
myApplication (i bubble icon)
The value violates the validation rule for the field or record.
For example, you might have changed a validation rule without verifying whether the existing data matches the new validation rule.
Click undo to restore the previous value, or enter a new value that meets the validation rule for the field or records.
[OK] [Help]
-----------
After clicking OK here, if I try to tab out of the text box without changing anything, I get only the validation text message. So this 2nd message only happens the first time an entry is invalid. I've tried using the Form_Error event and DataErr 7753, but I still get this extra message. The table has no restrictions on the text field. Any idea how I can suppress this?
I just noticed that if I press Escape after the closing validation text message box, it saves the record with the invalid data! What am I doing wrong?
Comment