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