link to a query in a second database

  • Thread starter Thread starter asc4john
  • Start date Start date
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
 
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?
 
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
 
Back
Top