Can't exit Access after running a function

D

DaveAmann

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
 

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

Top