|
|
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?
|
|
0
|
|
|
|
Reply
|
lindag
|
3/3/2010 7:44:28 PM |
|
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/documentation/windows/xp/all/proddocs/en-us/ntcmds_shelloverview.mspx?mfr=true
mfG
--> stefan <--
|
|
0
|
|
|
|
Reply
|
Stefan
|
3/3/2010 8:04:06 PM
|
|
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" <lindag@burt-law.com> wrote in message
news:44d8e7d2-12a9-4765-8969-062a7ab36783@g10g2000yqh.googlegroups.com...
>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?
|
|
0
|
|
|
|
Reply
|
vanderghast
|
3/3/2010 8:17:31 PM
|
|
|
2 Replies
651 Views
(page loaded in 0.029 seconds)
|
|
|
|
|
|
|
|
|