Using the COMMAND ( /cmd) function at startup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an app that I want to pass a command-line parameter to (Access2002). I
add the "/cmd "xxxx" " to the command-line in the shortcut, but for some
reason the value isn't being picked up by the form that opens on startup.

Any ideas?

Thanks!
 
While normally shortcuts to Access database can simply consist of the path
to the MDB file, to be able to use any of the startup switches, the shortcut
include the path to msaccess.exe:

"C:\Program Files\Microsoft Office\Office\MSAccess.exe" "C:\Program
Files\Microsoft Office\Office\Samples\Northwind.mdb" /cmd xxxx
 
That was the solution, thanks! Once I added the path to MSACCESS.EXE, the
command text was passed okay.

Dennis
 

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

Back
Top