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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top