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 / March 2005

Tip: Looking for answers? Try searching our database.

Call function on exit application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markantesp - 15 Mar 2005 14:57 GMT
I looked up the code that will compact a database if it reaches a certain
size.  I'm supposed to call this function before the application exits.  I
know how to call a function before a user closes a form, but I don't know how
to call a function before the actual application closes.  Any ideas?  Thanks!
Rick B - 15 Mar 2005 15:26 GMT
Answered all the time.  Do a search.

You need to tie your code to a form's close event.  If you don't have a form
that is always open, then make on that opens with the database in hidden
mode.  Tie all your "must run in the background" events to this form.

Rick B

> I looked up the code that will compact a database if it reaches a certain
> size.  I'm supposed to call this function before the application exits.  I
> know how to call a function before a user closes a form, but I don't know how
> to call a function before the actual application closes.  Any ideas?  Thanks!
 
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.