SELECT INNER JOIN query from multiple AS400 data sources with ADO?

DavidCondit

New Member
Joined
Jul 11, 2013
Messages
1
My current Access + Excel solution:
I use an Access database to create two pass through queries. Each pass through query selects records from different AS400 data source. I then use a third (regular... not pass through) query to INNER JOIN the two tables on a common field. The records returned by this query are exported to a new Excel Workbook sheet.

My desired solution:
Return records from a SELECT...INNER JOIN query (joining the tables from their respective data sources) all from within Excel.

I know how to use ADO in Excel to return records from a single data source... but how do I return a recordset created from a SELECT...INNER JOIN of tables from different AS400 data sources? Can I somehow reference the data source of each table in the ADO Command object's SQL (the SELECT...INNER JOIN statement)?

I've spent entirely too much time searching Google for this answer!:eek: Thanks for anyone willing to help me!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top