I have a SELECT query for an Excel file that works if I do this:
But not if I do this:HTML Code:da = New OleDb.OleDbDataAdapter("SELECT DATE, COMPOSER FROM [Sheet1$] WHERE DATE > 17/05/1903 ORDER by Date", con)
The error message just says there is a type mismatch but various alternatives don't seem to work. I'm trying to display data between two dates. Help appreciated.HTML Code:da = New OleDb.OleDbDataAdapter("SELECT DATE, COMPOSER FROM [Sheet1$] WHERE DATE BETWEEN '17/05/1903' AND '15/05/1926' ORDER by Date", con)


Reply With Quote
