Function to run upon MS Access quitting

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

Guest

Am stumped and a troll through the usual sources did not turn up anything

How do I get a function to fire when a user either clicks the close window
button on the Access application window or chooses File/Quit? (the database
window itself is hidden in my db)

Thanks for any thoughts
James
 
J said:
How do I get a function to fire when a user either clicks the close window
button on the Access application window or chooses File/Quit?

Create a hidden form that opens when the app starts. Put your closing
function in this form's Close event. When the app quits it will close this
form, executing the code you put in this form's Close event.
 

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