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

Tip: Looking for answers? Try searching our database.

Can't exit Access after running a function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DaveAmann - 03 May 2005 13:11 GMT
I intermittantly get an error message after running a VBA function that has
DoCmd.Quit acSave at the end.  The message states that I can't exit access
now becasue there is a VB session open.  From all my checks, I have closed
all objects and set recordsets/dbs to nothing.  Is there another command that
will close Access properly at the completion of the function.  I start this
function via a macro called by the Windows Task Scheduler
Signature

Dave

Andy - 03 May 2005 21:47 GMT
You might try Application.quit

hth,
Andy

> I intermittantly get an error message after running a VBA function that has
> DoCmd.Quit acSave at the end.  The message states that I can't exit access
> now becasue there is a VB session open.  From all my checks, I have closed
> all objects and set recordsets/dbs to nothing.  Is there another command that
> will close Access properly at the completion of the function.  I start this
> function via a macro called by the Windows Task Scheduler
 
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.