Starting, Running, and Stopping One Access App from Another

M

Mike Thomas

In an Access 2000's application's VBA module, I would like to be able to
start, on the same computer (eg Access is already running), another Access
application, run a procedure in one of the code modules, shut itself down,
then return to the next line of execution in the calling module of the
original Access application.

Does anyone know how this would be done?

Many Thanks
Mike Thomas
 
S

Steve

Try this.

In the first database, enter the code below to open the
second database.

Dim db2 As Object
Set db2 = GetObject("*** Second Database's Path/Name***")
db2.Quit

Then in the second database, create a Macro (eugh!) called
Autoexec and add a RunCode row. Enter the name of the
procedure you want to call, including the Parenthesis,
e.g. Procedure_Name()

And that, my friend, should be the answer! (or maybe a
partial answer anyway :)

Good Luck,
Steve.
 

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

Top