The error message is because you have an extra space between the slash and
the X (which is the command that means "run the following macro when you open
the db"). Remove the space between the two characters so that this part of
the command line looks like this:
/x dailyUpdate
Also, it's hard for me to tell from the way the editor breaks up the line of
text, but it appears that you have an extra space after the opening quote and
before the w:\ in the path to your db.
If the editor allows me to show it correctly, this should be all one line:
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "w:\bond\joanne\
daily\index.mdb" /x dailyUpdate
Chris
Microsoft MVP
Hi Chris,
Thank you for your help.
I have this command in my scheduled task. Does this look alright?
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "
w:\bond\joanne\daily\index.mdb" / x dailyUpdate
But it gave me an error message when the scheduled task run. Here is the
message:
The command line you used to start Microsoft Office Access contain an option
that Microsoft Office Access doesn't recognize.
Thanks
Joanne
Windows task scheduler will run tasks for you daily if you set it up. The
command line to run a macro would look like this (all one line):
[quoted text clipped - 14 lines]