Reputation: 37
When I tried to open MS Access from the command line I got the following error message:
The command line you used to start Microsoft Office Access contains an option that micosoft Access doesn't recognize.
My command is very simple:
"C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" E:\MonthlyCompAudit\"Audit - Test - Copy.accdb"
If I just run
"C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE"
it works.
After I included the database name, it does not work. The Access file path/name is current, because I verified with dir
command.
Upvotes: 0
Views: 1189
Reputation: 549
Your quotation marks are around only the file name, not the entire path. Try:
"C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" "E:\MonthlyCompAudit\Audit - Test - Copy.accdb"
You can include a path, if necessary. If the path contains spaces, enclose it in quotation marks.
Upvotes: 4