Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
hi all.

this code make exception :-
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] The Microsoft Access database engine cannot find the input table or query '300'. Make sure it exists and that its name is spelled correctly.

I have database with three tables 500, 600, 700-800, 300-400.

the first two is working good, but the two others is make above exception.
I am sure that the problem is this char '-'.
please help, and thanks.
Posted

1 solution

Either rename the tables, or enclose the names:
SQL
SELECT * FROM [300-500]
 
Share this answer
 
Comments
ahmed tb 30-Sep-12 10:29am    
thank you. its working good
RaisKazi 30-Sep-12 10:31am    
My 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900