Click here to Skip to main content
12,893,086 members (60,021 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java netbeans
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 30-Sep-12 4:10am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Either rename the tables, or enclose the names:
SELECT * FROM [300-500]
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100