L
LAS
I have some validation code in the before_update and before_insert events of
my form. If the form is not valid, cancel = true. It works fine except
when the user clicks the Close event. They get the invalid message, but the
form continues to close. They lose the opportunity to correct their errors
before losing all their other data. Can I stop the close from completing?
This is the code in the Close button.
DoCmd.Close acForm, Me.Name
my form. If the form is not valid, cancel = true. It works fine except
when the user clicks the Close event. They get the invalid message, but the
form continues to close. They lose the opportunity to correct their errors
before losing all their other data. Can I stop the close from completing?
This is the code in the Close button.
DoCmd.Close acForm, Me.Name