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.
Setting
You use a string expression to set the value of the SourceConnectStr and SourceDatabase properties.
You can set these properties in the query's 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 instead of the SourceConnectStr and SourceDatabase properties.
Remarks
You must use the SourceConnectStr and SourceDatabase properties to access tables from external databases that were created in applications that don't use linked tables.
The following are examples of these property settings:
SELECT Customer.COMPANYNAM, Orders.ORDERID, Orders.ORDERDATE
FROM Customer INNER JOIN Orders
ON Customer.CUSTOMERID = Orders.CUSTOMERID
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.
For more information about accessing data in ODBC databases, see Chapter 15, "Retrieving and Analyzing Data," in the Microsoft Office 2000/Visual Basic Programmer's Guide. For information about how to obtain the Microsoft Office 2000/Visual Basic Programmer's Guide, click .