-
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.
-
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()