Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

Function to run upon MS Access quitting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J Welsby - 09 Nov 2006 03:39 GMT
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
Granny Spitz - 09 Nov 2006 04:28 GMT
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.