Running VB module from other application

G

Guest

Hi, I want to run a module/function that is located in one access data base from another access database. For example there is a function that update tables in database "X". I want to be able to add a macro/VB code in database "Y" that will run a fuction on database "X" so the data in database "X" will be updated. How can i call a function on another DB?
 
M

Marshall Barton

energy said:
Hi, I want to run a module/function that is located in one access data base from another access database. For example there is a function that update tables in database "X". I want to be able to add a macro/VB code in database "Y" that will run a fuction on database "X" so the data in database "X" will be updated. How can i call a function on another DB?


You have two options here. One is to use Automation: open a
second instance of Access with the other db.

The other is to reference the other mdb file as a library so
you can call its public procedures (in standard modules).
 

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