Syntax Error in Query expression
Hi guys,
Am using MS Access database.
To access data from the database, i use the following query
Code:
String query = "SELECT * FROM PathConfig WHERE AcademicYears = '"+acadYr+"'_StudentResults.xls";
On executing the above query, i get a syntax error "java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in query expression 'AcademicYears = '2009_2010'_StudentResults.xls'."
Anyone with an idea on how i can solve this error??
Your response will be highly appreciated.
Cheerz!!:(