Validating entry on form closure
Posted on 1998-08-31
I use the BeforeUpdate event on a form to validate data entry and cancel the event if the data is missing. This works fine when the user tries to move off the record.
My problem is if a user tries to close the form. The BeforeUpdate event traps the error however the close action still continues and the user is advised that "You can't save this object at this time .... Do you want to close?" YES/NO.
I would like to be able to get rid of this message and prevent the user from closing until the correct data is added or the user selects to undo the record then close
is this possible?