Can I pass a variable via command line?

  • Thread starter AbraAbraCadabra
  • Start date
A

AbraAbraCadabra

Can I pass a variable via command line like this....?

MyDatabase.mdb "blue"

I couldn't figure out how?
 
D

Douglas J Steele

Yes, but your command line must include a reference to the Access
executable, not simply to the MDB file, and you must precede the parameter
with /cmd (or a semi-colon):

"C:\Program Files\Microsoft Office\Office\MSAccess.exe"
"C:\MyFolder\MyDatabase.mdb" /cmd blue

To retrieve the parameter, you use the Command function.
 

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