On MS Access shutdown

  • Thread starter Thread starter German Saer
  • Start date Start date
G

German Saer

Is there any way to write code when access closes?

In other words I have an application that logs everything that the user
does. I want to log when they exits the application. Is there any
OnShutDown Method or similar?

Thanks

German Saer
Orlando, FL
(e-mail address removed)
 
German Saer said:
Is there any way to write code when access closes?

In other words I have an application that logs everything that the user
does. I want to log when they exits the application. Is there any
OnShutDown Method or similar?

Open a hidden form at Startup and use that form's Close event. Closing your App
(or Access itself) will trigger the Close event of the hidden form.
 
If you have a main menu or switchboard form that is only closed when the
database closes, use the Close or Unload event of that form. Or, have the db
startup code open an invisible form, then use those events of that form.

HTH,
TC
 
Back
Top