Close Database Event

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

Guest

Is there anything like a close database event. I want to run some code just
before closing a database automatically.
 
No.

But you can accomplish pretty much the same thing by including code in the
Unload event of an "always open" form. This could be a hidden form that was
opened at startup or a main app form (i.e., switchboard-like) that only
closes when the user is exiting.

Note that this won't fire if you (as developer) don't have the particular
form open and then close the file. In theory, your users should never be in
that situation.

HTH,
 

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