Run code when user tries to exit Access.

crook_n_flail

Registered User.
Local time
Today, 05:01
Joined
Aug 18, 2001
Messages
11
Running a macro or module when Access first starts up is straight forward enough; but how do i get a form to display when a user hits the "X" button on the title bar of the main Access window?? Any information on this matter is greatly appreciated.
 
I agree with Rich that putting the code in the OnClose event of a hidden form is a good solution, but it's not perfect because the user may close the database window and leave Access open. In this case, the code would execute.

Just FYI.

Peter De Baets
Peter's Software - MS Access tools http://www.peterssoftware.com
 

Users who are viewing this thread

Back
Top Bottom