Jan 28, 2002 #1 rewdee Programmer Aug 17, 2001 295 US I would like to create a schedule task that will run a macro. I'm having trouble with the syntax. I've tried Code: C:\somepath\msaccess.exe c:\somepath\someMDB.mdb /cmd /x SomeMacro.macro Does anyone know the exact line to type in. Thanks, Rewdee
I would like to create a schedule task that will run a macro. I'm having trouble with the syntax. I've tried Code: C:\somepath\msaccess.exe c:\somepath\someMDB.mdb /cmd /x SomeMacro.macro Does anyone know the exact line to type in. Thanks, Rewdee
Jan 28, 2002 #2 KyleS Programmer Oct 23, 2001 619 US RewDee, So you're trying to create a batch file to automatically open a db and run a marco, right? The line is right except for the "/cmd " Take that out and it should work IF you're running WinNT 4.0 I don't know the syntax for Win 2000 But check out this website: http://www.robvanderwoude.com/index.html Hope this helps Kyle : Upvote 0 Downvote
RewDee, So you're trying to create a batch file to automatically open a db and run a marco, right? The line is right except for the "/cmd " Take that out and it should work IF you're running WinNT 4.0 I don't know the syntax for Win 2000 But check out this website: http://www.robvanderwoude.com/index.html Hope this helps Kyle :
Jan 28, 2002 #3 cmmrfrds Programmer Feb 13, 2000 4,690 US Here is one of my bat files that I run from Win98. I interrupt the cmd in the program to decide what processing to do i.e. run macro etc.. rem Echo "Running Access 850 processing ...................." cd "C:\Program Files\Microsoft Office\Office" "Msaccess.exe" "C:\edi\850in\EDI850IN.mdb" /cmd "850IN" Upvote 0 Downvote
Here is one of my bat files that I run from Win98. I interrupt the cmd in the program to decide what processing to do i.e. run macro etc.. rem Echo "Running Access 850 processing ...................." cd "C:\Program Files\Microsoft Office\Office" "Msaccess.exe" "C:\edi\850in\EDI850IN.mdb" /cmd "850IN"