T
Tara
I have a form that uses the BeforeUpdate event to ensure that all fields
contain data before a user can close the form. The user typically clicks a
"Save" button which saves the data then closes the form. Now that the
BeforeUpdate event has been added, if the user forgets to add data to a field
and clicks the "Save" button, they get a custom error message reminding them
to fill in all fields. However they also get a message saying "The
DoMenuItem action was canceled". I understand why this happens (Obviously it
wants to save the data and can't) but I'm not sure how to code it so that if
validation fails, it doesn't even try to save the data.
Any help is appreciated!
contain data before a user can close the form. The user typically clicks a
"Save" button which saves the data then closes the form. Now that the
BeforeUpdate event has been added, if the user forgets to add data to a field
and clicks the "Save" button, they get a custom error message reminding them
to fill in all fields. However they also get a message saying "The
DoMenuItem action was canceled". I understand why this happens (Obviously it
wants to save the data and can't) but I'm not sure how to code it so that if
validation fails, it doesn't even try to save the data.
Any help is appreciated!