[RESOLVED] Run and Close Access Autoexec from command prompt
Apologies if this is not the correct forum:
I have an Access Database that uses an AutoExec macro to run some queries/code on startup. I use Windows Scheduler to run this job every day using a batch file.
Question: how do I get Access to close after opening and running the code? Is this an access start up switch/option? Or is it a system command I need to run from the command prompt?
Thanks
Kester
Re: Run and Close Access Autoexec from command prompt
You would need your autoexec macro code to .CloseCurrentDB and.Quit the application after your code runs.
Re: Run and Close Access Autoexec from command prompt
Brilliant - thanks (I'm no access expert!).
Re: Run and Close Access Autoexec from command prompt
Always glad to help. :)
Dont worry, you'll get there soon ;)