Using VBA-Excel for an SQL query across multiple databases
问题 Using Excel 2010, SQL and DAO I am trying to execute a query against tables which reside outside the current spreadsheet. This would be trivial, inside Access, with linked tables/databases, but using VBA in excel, I am stymied. Presuming these: ExcelFileOne; Tab; various headed field/columns ExcelFileTwo; Tab; various headed field/columns I want to execute a query inside a third excel file, that goes something like this [using dot notation for explanation, not coding....] -- a simple example: