0

I have a batch file set up in Task Scheduler. However, the access macro it is supposed to run does not. The code is.

N:\stufftorun\Thisdb.accdb /x "mac_to_Run"
N:\stufftorun\StuffCombine.bat
exit

I'm new to batch files and any resources would be greatly appreciated as well.

Michael
  • 749
  • 1
  • 8
  • 22
  • Can you post the code that's giving you the trouble? – wogsland May 18 '16 at 19:35
  • This is the one that is giving me trouble. N:\stufftorun\Thisdb.accdb /x "mac_to_Run" N:\stufftorun\StuffCombine.bat exit – Michael May 18 '16 at 19:52
  • Checkout this answer: [Running Microsoft Access as a scheduled task](http://stackoverflow.com/questions/20245053/running-microsoft-access-as-a-scheduled-task) – Huntdogg May 18 '16 at 20:21

2 Answers2

1

Clear the quotes:

N:\stufftorun\Thisdb.accdb /x mac_to_Run
Gustav
  • 53,498
  • 7
  • 29
  • 55
0

Not sure if it was clearing the quotes or because the Access Application was running on an unmapped drive. At any rate it is working now.

Michael
  • 749
  • 1
  • 8
  • 22