schedule a macro with /x not working

  • Thread starter karen scheu via AccessMonster.com
  • Start date
K

karen scheu via AccessMonster.com

I have a macro called test that simply runs a function called getdailyupdate()

If I run the macro manually, the function runs perfeclty. If I schedule it
to run using windows scheduler with /x "test", Access starts up and the
database window shows the modules and that's it. The function never gets
executed. Does someone know what is going on?


Thanks,
Karen
 
D

Douglas J. Steele

How are you scheduling it? I believe that the scheduling tool will open a
database if you strictly pass the name of the database. However, the command
line options apply to msaccess, the executable, not to the database itself.

You must supply the complete path to msaccess in order to use command line
options:

"C:\Program Files\Microsoft Office.11\OFFICE11\msaccess.exe" "C:\My
Data\MyDatabase.mdb" /x "test"
 
K

karen via AccessMonster.com

Douglas said:
How are you scheduling it? I believe that the scheduling tool will open a
database if you strictly pass the name of the database. However, the command
line options apply to msaccess, the executable, not to the database itself.

You must supply the complete path to msaccess in order to use command line
options:

"C:\Program Files\Microsoft Office.11\OFFICE11\msaccess.exe" "C:\My
Data\MyDatabase.mdb" /x "test"
I have a macro called test that simply runs a function called
getdailyupdate()
[quoted text clipped - 7 lines]
Thanks,
Karen
 

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

Similar Threads

Schedule Macro 5
Schedule to run a Function not using AutoExec 1
schedule a macro 1
Scheduled macro 5
Way to start Access macro 10
Problem with "OnClose" 1
Create a database using VB Code 1
schedule macro 1

Top