By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,472 Members | 1,219 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,472 IT Pros & Developers. It's quick & easy.

How to select from 2 tables in 2 different accdb (Access) files.

P: 2

I have 2 accdb files. I need to create a recordset that will include rows comming from 2 tables that are in 2 different accdb file.

Expand|Select|Wrap|Line Numbers
  1. select,, a.address,
  2. from table1 as a, table2 as b
  3. where =
Both table1 and table2 are stored in 2 different accdb files

Is that possible? I will need 2 connections, and I can't see how I can "select" from 2 connections.

Or can I do this in VB once I have retreive al the rows from each tables?

Jun 25 '10 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,240
It's not 100% clear what you are asking. Are you telling that you have two different .mdb files, and these two tables reside in both .mdb files? You have an ODBC connection to the other .mdb?

It should be simple to make two queries, one querying the first pair of joined tables, the other querying the other two joined tables, and then join the two queries in a third query.

Really can do it in two queries, by joining the two tables and join that to the 1st query, but it's sort of a minor detail.

Jun 26 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.