Can anyone see what’s wrong in the Insert query statement? Categorylist is a listbox value (not dynamic). Publ is a checkbox value and the others are text boxes. I’m using JSP, trying to update the Access 2000 database from a form.
Error = [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
etc...
etc...
etc....
Actually, those date and time fields are stored as Text fields (less stress) .
I don’t I changed the code, now I get another type of error msg!
Error = [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
etc....
etc.....
Hmmmmm I’m now wondering just what that “char publ” is doing there!!!
I’m wondering if part of the problem is trying to grab the selected value from the option list (categorylist) and also that check box too. Just what is the corect code for doing those two( selecting one value from the list box…and also the value from thecheckbox)! I’d be a happier camper if anyone can solve this. I’m losing sleep and getting crabbier. LOL.
Please don’t confuse me with too much technical talk…lol…I’m sleep depraved! All the fields are TEXT except for the check box…it’s Yes/No in the Access 2000 db.