Running Code as Access 2007 Shuts down

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

I want to run some VBA code in Access 2007 as the application is being shut
down.

How is that done?
 
You have your application open a hidden form when it starts up (either in
Startup options, or from the first form that is opened automatically). Put
hte "shutdown" code in this hidden form, in its Unload event. When ACCESS is
shut down, this form's code will run when the form is being unloaded.
 
Back
Top