Schedule a Macro with Windows Task Manager

L

lindag

I am trying to do so, but it is not working.

My .bat file:
C:\Program Files\Microsoft Office\OFFICE11
E:\IT Dept\Access\database name.mdb /x Marco Name

Is this correct?
 
S

Stefan Hoffmann

hi,

I am trying to do so, but it is not working.

My .bat file:
C:\Program Files\Microsoft Office\OFFICE11
E:\IT Dept\Access\database name.mdb /x Marco Name

Is this correct?
No, see

http://support.microsoft.com/kb/209207

You need to specifiy the Access executable, e.g.:

Set ACCESS = "C:\Program Files\Microsoft Office\Office10\msaccess.exe"
Set DATABASE = "E:\IT Dept\Access\database name.mdb"
Start %ACCESS% %DATABASE% /x MarcoName

btw, you also need the quotation marks as the path to the executable and
the database file contains spaces:

http://www.microsoft.com/resources/...docs/en-us/ntcmds_shelloverview.mspx?mfr=true


mfG
--> stefan <--
 
V

vanderghast

You know the answer, and if it was yes, you would not ask :)

The command line is about launching MSACCESS.EXE;
The syntax is also wrong in cases of spaces in the path name, since space
is a delimiter between arguments, and if memory serves, you need to use " ",
or, maybe, easier, to have the path and msaccess.exe and of the
databaseName.mdb file in the PATH variable;
The space in the macro name maybe a problem... as may any typo (Marco... the
Italian explorer? :) )


Vanderghast, Access MVP
 

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

Top