You can use the MS Access command line switch to run the macro. If you search for “commandline” in Access help, in the “Launch Command Line Options” section, you will find all the command line switches. The switch to run the macro is x macro .
So, if you write your macro to run whatever you want and exit Access when it finishes, you can create a command line that will do the trick and put it in a batch file that the Windows task scheduler can execute.
However, as I said in the comment above, if you just run some queries, I would say that it makes sense to bypass access completely and use DAO directly in the scheduled vbScript to execute the requests.
source share