Access Command Line Arguments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billelev
    New Member
    • Nov 2006
    • 119

    #1

    Access Command Line Arguments

    Is it possible to start an Access database, using the above code (*** Edit Shell() ***), but also by passing in arguments? I'm pretty sure I've done this before using the Shell command, and given the routine RunUntilFinishe d uses Shell I think I should be able to. I'm not sure what I have to do on the Access side to accept the arguments, however.

    Any thoughts?
    Last edited by NeoPa; Feb 23 '09, 08:40 PM. Reason: Split from other thread
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    #2
    This question was split from How to Automate the Running of Multiple Applications (for context).

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32669

      #3
      You may find Access Command Line Options to be a useful resource for this.

      Essentially use :
      Code:
      MSAccess.Exe {Database Path&Name} ;Your extra parameters here
      The Command() function within the code of Access will give you access to the Your extra parameters here bit.

      Comment

      • billelev
        New Member
        • Nov 2006
        • 119

        #4
        Awesome...Thank s for your help!

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32669

          #5
          No worries.

          I realised how fundamental and interesting a question it was (It got my interest) so I dug up what I could on it and now I know how to use it :)

          Comment

          Working...