tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,834
- Office Version
- 365
- 2019
- Platform
- Windows
Further to this thread:
my data now is entirely on Sheet1.
A1 contains Fruit, B1 contains Store, C1 contains Fruit and D1 contains Store.
This query doesn't work:
with an error message:
Can someone tell me what is wrong?
Thanks
Code:
https://www.mrexcel.com/board/threads/sql-query-in-excel.1160445/#post-5631185
my data now is entirely on Sheet1.
A1 contains Fruit, B1 contains Store, C1 contains Fruit and D1 contains Store.
This query doesn't work:
Code:
strSQL = "SELECT [Sheet1$A1], [Sheet1$B1], [Sheet1$D1] " & _
"FROM [Sheet1$A1:B6] INNER JOIN [Sheet1$C1:D4] ON [Sheet1$A1] = [Sheet1$C1]"
with an error message:
Code:
Join expression not supported
Can someone tell me what is wrong?
Thanks