If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Schedule a Macro with Windows Task Manager
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? |
#2
|
|||
|
|||
Schedule a Macro with Windows Task Manager
hi,
On 03.03.2010 20:44, lindag wrote: 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/d....mspx?mfr=true mfG -- stefan -- |
#3
|
|||
|
|||
Schedule a Macro with Windows Task Manager
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 "lindag" wrote in message ... 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? |
Thread Tools | |
Display Modes | |
|
|