Reputation: 8617
I've tried these, and they did not work (Access opens, but it does not wait:
start "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start /WAIT "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start /W "C:\program files\Microsoft Office\Office\MSACCESS.EXE" filename.mdb
start filename.mdb
start msaccess.exe filename.mdb
Upvotes: 1
Views: 2672
Reputation: 11
PATH="C:\Program Files\Microsoft Office\OFFICE11\; C:\Windows\Command"
START /WAIT MSACCESS.exe "path to mdb file" /X "name of macro"
Upvotes: 1
Reputation: 8617
start /WAIT msaccess.exe filename.mdb
does the trick.
I don't know why adding the full path makes it fail.
Upvotes: 2