Glory
Well-known Member
- Joined
- Mar 16, 2011
- Messages
- 640
I keep getting problems with ADO where I can't se any tables in my workbook... which has a row of headers and distinct columns of data.
Sometimes I can get MS Query to recognize the tables by making the header rows bold. Sometimes that doesn't work.
Is there a way to force MS Query or any SQL routine to treat the source range as a table, no matter what it finds there?
EG:
The code claims not to find the table, even though I'm specifically telling it to grab this range of data.
Any ideas?
Sometimes I can get MS Query to recognize the tables by making the header rows bold. Sometimes that doesn't work.
Is there a way to force MS Query or any SQL routine to treat the source range as a table, no matter what it finds there?
EG:
Code:
szSQL = "SELECT * FROM [" & "Errors$" & "A1:J2" & "];"
The code claims not to find the table, even though I'm specifically telling it to grab this range of data.
Any ideas?