Is it possible to run a certain sub whenever the .mdb starts to close? I understand that I can attach code to my quit button, but they might also quit by using the "x" in the app window's upper right corner.
I don't think there is such an event, but as a work around you can have a form which is invisible and is open at the start, then use this form's close event...
In the few minutes since I asked this question, I found the invisible form trick. But Crowley, what code do I use to abort the shutdown? The threads I found say that "Cancel=True" does it. Unfortunately that does not seem to work for me.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.