Results 1 to 2 of 2

Thread: App entry methods

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    App entry methods

    I'm working on an app that I want to be launched either of two ways.
    It can be launched on its own, or from a button in an Access form.
    If launched on it's own, it's ok. The user then selects the db to connect to.
    But if the user is already in one of the various dbs and wants to launch it from a form, how can I pass the current db as a default?
    Thanks.

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    Just pass the location of the database as a parameter to the .exe file (ie c:\myapp.exe "d:\database.mdb").
    You can then use this line of code to read in the data to a string, and open the database.

    Code:
    Microsoft.VisualBasic.Command()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width