link to a query in a second database

G

Guest

Of course the query has to run each time. How otherwise would it reflect
changes in the tables since the last time it ran?

-Dorian
 
A

asc4john

The post seems to imply that the query does not have to be run each
time. That you "can" link to the query because it is a "Make Table"
query. Otherwise what is the point?
Bascically I want to link to a query in an other database, How do I do
that?
 
P

Pieter Wijnen

You can create a local query

SELECT * FROM MyRemoteQuery IN 'C:\RemoteDatabase.mdb'

Or

SELECT * FROM MyRemoteQuery IN [C:\RemoteDatabase.mdb]

This method can also be used for text , Excel & ODBC files Albeit with a
more complex connection string

SELECT *
FROM
[Text;Database=C:\Temp\;TextDelimiter=none;ColNameHeader=True;Format=TabDelimited;].[MyFile#txt];

Note the use of # instead of (.) before the file extension

HtH

Pieter
 

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