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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forcing Code To Run Upon Exit Of DB? 2

Status
Not open for further replies.

BTilson

Programmer
Jul 14, 2004
139
US
Hello all,

Is there any way to force a function to run when the database is closed? I need to create some code that will run upon closing the database regardless of how it is closed, whether it be with the X box in the corner, the menu's, a custom coded 'exit' button, so on and so forth.

Does anyone know if such a thing is possible?

Thanks!

Brooks Tilson
Database Development
Tilson Machine, Inc.
 
Put your code in the Unload event procedure of an hidden form open at startup.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hey, how simple. Works perfectly.

Thanks!

Brooks Tilson
Database Development
Tilson Machine, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top