Hi,
I recieve the following error message:
"java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression'name '"
when I run this statement:
sql = "INSERT INTO empDetail VALUES(";
sql += txtName.getText()+ ", ";
sql += "'" + txtAddress.getText()+ "', ";
sql += "'" + txtSuburb.getText()+ "', ";
sql += "'" + txtPostCode.getText()+ ", ";
sql += "'" + txtDOB.getText()+ "', ";
sql += "'" + txtPhone.getText() + "', ";
sql += "'" + txtWorkExt.getText()+ "', ";
sql += "'" + txtMobile.getText()+ "', ";
sql += "'" + txtEmail.getText()+"')";
I can't see the problem where is the missing operator?(and yes I have my glasses on :)
I have been going over and over it the last 2hrs but without any luck.
can you spot what's going on.