Windows "X"

J

John Lane

How in Access do I catch the fact that someone has clicked "X" on the
Access/Windows bar?
 
R

ruralguy via AccessMonster.com

I do it by loading a hidden form as the first thing. When the user presses
the "X" then Access will attempt to close down and the last thing it does is
close my hidden form. This form has an Unload event that you can Cancel to
stop Access from closing. You can put up any message you want and do any
housekeeping chores the need doing.
 
Top