Run query residing on external database

G

Guest

I have three queries and a table residing on an external database. The table
is linked and I would like to be able to run the queries without importing
them to my current database. I'd like to implement the same code using the
same 3 queries on 3 separate databases. It would be great if i didn't have to
have a copy of the queries in each DB.

Thanks in advance,

Pip'n
 
M

MGFoster

Pip''''n said:
I have three queries and a table residing on an external database. The table
is linked and I would like to be able to run the queries without importing
them to my current database. I'd like to implement the same code using the
same 3 queries on 3 separate databases. It would be great if i didn't have to
have a copy of the queries in each DB.

I'm assuming that the external DB is an Access DB? If so, use
Automation to run the queries in the other DB. See the Access VBA Help
article on the GetObject() function.
 

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