i have tried this. long DATE= Date.parse("12/1/2006");
stat.executeUpdate("insert into ORDERS (CoustmerID,serviceID,service_details,order_no,date) values('"+keyCostumer+"','"+keyservice+"','"+keyservice_Details+"','"+OrderId+"','"+DATE+"')");
this error message
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Sy ntax error in INSERT INTO statement.
Hassan, Access is expecting a specific format for the date. (Check your database documentation for the format.) it is definitely not a long with the number of milliseconds since 1970.
I still recommend a PraparedStatement as it avoids this issue and you can just pass a Java Date object in.