If the form is dirty, the BeforeUpdate event will run. Otherwise the Close event
If you want to examine how form events work, you might want to take a look at this example database I built for the video mentioned in the thread. I suggest watching at least one video so you can see how the form works. The one hosted on Utube is the most entertaining due to the audience interaction.
I just added #2 --- that link is further down. It is much shorter than #1. I also added a copy of the database I used for the video. Enjoy:) I created a database to help people to understand how and why to use the Form's BeforeUpdate event to validate data. @Uncle Gizmo and I made a...
www.access-programmers.co.uk
Holly Jesus Pat, this is GENIUS,
First of all, I had 1000% Respect for your knowledge and patience with my donkey[ness]

but now is up to infinity, I am actually learning from the very very very beginning access, of course I am doubling down with VBA because of timing issues, but this has been the best explanation ever on those events, actually I applied it to the forms I am using and voila no more issues at closing.
I know and fully understand that my database and coding will make me the clown in the forum, but like you said, everybody starts somewhere, I think in a few years I will go back to my actual program and think..
What a fool
but I will be a fool once.
@Pat Hartman I whish I can learn more from you, I am extremely thankful, and please apologize me before hand for all the stupid questions I will ask, for many here in the forum will think what the heck am i doing, but no one knows my situation and my lack of knowledge, I am trying at 60 to learn and old skill I had with some new programming language I've never used, as you know I was good with FoxBase and Cobol, but that was 40 years ago, this is so new to me, and I am still trying to apply those techniques I used with this new monster called ACCESS and VBA, so is not easy.
I am looking forward part 2 of the video, or video series.
never the less if you have a website or maybe a learning place you handle I would love to learn from you as well.
Thanks for your lessons.
Maurice.