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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.