Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select two fields from different MS-Access Databases

Status
Not open for further replies.

PalaniappaBabu

Programmer
May 23, 2001
10
US
Is it possible to Select two fields from different MS-Access Databases?
 
You can link tables from just about as many Access databases you want.
 
Is it possible through a SQL Statement?

For Ex : Select a.No, b.Name
from db1.Employee a, db2.Employee b;
 
So long as you've linked the two tables to the database you can. There will need to be a common field value between the two tables for establishing a relational join.
 
The problem is there must not be any joins (i.e, I must not create any joins). I have to do this with a SQL statement.
Is it possible?

 
Try this....

SELECT FieldName
FROM TableName IN 'c:\directory\db1.mdb';

UNION ALL

SELECT FieldName
FROM TableName IN 'c:\someotherdirectory\someotherdb1.mdb';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top