Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Can I pass a variable via command line?

Discussion in 'Information Technology' started by AbraAbraCadabra, Jul 28, 2006.

  1. AbraAbraCadabra

    AbraAbraCadabra
    Expand Collapse
    Guest

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

    MyDatabase.mdb "blue"

    I couldn't figure out how?
     
  2. Loading...


  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    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.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "AbraAbraCadabra" <nws@gsw-inc.com> wrote in message
    news:OReIPM4cGHA.2456@TK2MSFTNGP04.phx.gbl...
    > Can I pass a variable via command line like this....?
    >
    > MyDatabase.mdb "blue"
    >
    > I couldn't figure out how?
    >
    >
     

Share This Page