Query.
You can use these properties to access external data when you can’t link the external tables to your database.
Note The SourceConnectStr and SourceDatabase properties apply to all queries except data-definition, pass-through, and union queries.
You use a string expression to set the value of the SourceConnectStr and SourceDatabase properties.
You can set these properties in the query property sheet or in SQL view of the Query window. In the SQL statement, the properties correspond to the IN clause.
Note If you are accessing multiple database sources, use the Source property
You must use the SourceConnectStr and SourceDatabase properties to access tables from external databases created in applications that don’t use linked tables.
The following are examples of these property settings if an application that doesn’t use linked tables accesses the data from databases created by Microsoft Access and other database products:
SELECT DISTINCTROW Customers.[Company Name], Orders.[Order ID], _
Orders.[Order Date] FROM Customers INNER JOIN Orders ON _
Customers.[Customer ID] = Orders.[Customer ID] _
IN 'C:\Dbdata'[dBASE IV;];
ODBC;DSN=salessrv;UID=jace;PWD=password;DATABASE=sales;
The SourceDatabase property doesn’t have a value for an ODBC database.
DestConnectStr, DestinationDB, DestinationTable Properties; Source Property (Microsoft Access).