event on DB closing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is there a way to fire a procedure on closing the DB?
the application object doesn't have any events...so how?

I would like to record in a table the date and time of the closing

Nico
 
rocco said:
is there a way to fire a procedure on closing the DB?
the application object doesn't have any events...so how?

I would like to record in a table the date and time of the closing

Nico

Open a hidden form at startup and use its Close or Unload event. When the app
(or Access) is closed those events will fire.
 
The typical trick is to create a form that is opened as a hidden form
with the DB opens. The in the onClose event for the form fire the code.

David H
 

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