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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL for ADO recordset using table joins of multiple sheets?

Status
Not open for further replies.

neemi

Programmer
May 14, 2002
519
GB
EXCEL 2007

Does anyone know what the syntax for joining multiple sheets via ADO to populate a recordset would be based on multiple sheets?

I am trying the below but it does not work.

SELECT
[Sheet1$].[column1]
,[sheet2$].[column2]
,[sheet2$].[column3]
FROM [Sheet1$]
LEFT OUTER JOIN [Sheet2$] on [Sheet1$].[Column1] = [Sheet2$].[Column1]
 
All sorted now.
FYI.
using multiple joins required bracketing around the joins and "LEFT JOIN" instead of "LEFT OUTER JOIN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top