Fornatian
Dim Person
- Local time
- Today, 08:00
- Joined
- Sep 1, 2000
- Messages
- 1,394
I now know that you use the before update event to perform last minute checks on data validity before committing the changes but my question is this:
If I have a form with a close button on it using Docmd.Close, is there an easy way to cancel the close buttons execution if a rule in the before update event is broken to return the focus to a control on the form. I am currently using a boolean variable as a flag but would like to know if this is the right way to use the before update event to control closing of a form?
Thanks in advance for any replies.
If I have a form with a close button on it using Docmd.Close, is there an easy way to cancel the close buttons execution if a rule in the before update event is broken to return the focus to a control on the form. I am currently using a boolean variable as a flag but would like to know if this is the right way to use the before update event to control closing of a form?
Thanks in advance for any replies.