Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Exit

Status
Not open for further replies.

ryan1

Programmer
May 15, 2002
106
US
Is there a function that will run on Exit of the entire database (for example autoexec macro on startup).
 
If you have a form open the whole time (I have a main menu open), you can put the code in the form's Close() event. If you don't have a form that does this, you can open a new form on startup and hide it. Then on exit THAT form's Close() event will be called.

--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
Addendum: don't depend on your users closing the database in a proper manner. This may work 99% of the time, but for the 1% it doesn't...just keep this in mind.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top