I'm writing a vba code in Excel to access an Access database.
I'm using this provider
"Provider=Microsoft.ACE.OLEDB.12.0; Data Source= " & DBFile & ";"
and here is my SQL string
SQlSrc = "SELECT YEAR FROM Data ORDER BY YEAR ASC"
SQlSrc = SQlSrc & ";SELECT STN FROM STN_List WHERE include = TRUE"
When I open each recordset individualy it works (just first line or second) but when I make as a single statement as above I get an error "Characters found after end of SQL statement"
Does anybody have idea if it's a problem with Access 2007?