How to select from excel table with left join in access database - EXCEL VBA
问题 i'm having difficult to create on query with two different database in ADO, i need to make a lot of queries with different sources, for example select from excel file with left join in access file. When i use two different excel files like the code below works fine. Dim SQL As String Dim CN As New ADODB.Connection Dim rs As New ADODB.Recordset Set CN = New ADODB.Connection Set rs = New ADODB.Recordset 'Open connection CN.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=C:\ExcelTable