Running Code as Access 2007 Shuts down

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?
 
K

Ken Snell MVP

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.
 
Top