Opening an mdb from a command file

  • Thread starter Thread starter Funions
  • Start date Start date
F

Funions

I want to create a command file that opens an Access
database. If the name of my database is example.mdb, I
thought it would be

cd C:\Progra~1\Microsoft Office\Office

MSACCESS.EXE C:\example.mdb

and that would open it, but it does not work. Any help
would be appreciated.
 
The command line has spaces, you need to enclose it in quotes.

cd "C:\Progra~1\Microsoft Office\Office"

MSACCESS.EXE C:\example.mdb

Depending on your version of windows, you may find the following easier. You
shouldn't need to change to the directory first.

"C:\Program Files\Microsoft Office\Office\MsAccess.exe" C:\Example.mdb

Or

Start MsAccess.exe C:\Example.mdb
 
Back
Top