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