i'm trying to get a date from a database and compare it with the date where is it entered in the texfield
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
con = DriverManager.getConnection("jdbc:odbc:MoviesAc");
System.out.println("Connection ok.");
Statement stmt = con.createStatement();
String SQL="SELECT * FROM MoviesAc";
ResultSet rs= stmt.executeQuery(SQL);
while (rs.next()) {
if( rs.getString("DateOfMovies").equals( jTextField1.getText()))
System.out.println("it worked");
}
con.close();
now after running the code it says
Exception: [Microsoft][ODBC Microsoft Access Driver] The Microsoft Office Access database engine cannot find the input table or query 'MoviesAc'. Make sure it exists and that its name is spelled correctly.
am i doing anything wrong knowing that the DB is spelled correctly and it connects when trying on any other data , appreciating all the help and any info