Opening an mdb from a command file

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.
 
W

Wayne Morgan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top