A
Andrew
How do I insert the current date into MS Access?
Currently I am attempting:
s.executeUpdate("INSERT INTO Purchase(timestamp,
importer_id, supplier_id, ff_id, status) VALUES(#Now()# , "
+ getUserId() + ", " + s_id + ", 1, 0)");
However, this always results in a syntax error. Attempting
to enter a hard-coded date (12/7/02) also ends in a similar
error.
However, I am more interested in knowing how to insert the
current date.
Currently I am attempting:
s.executeUpdate("INSERT INTO Purchase(timestamp,
importer_id, supplier_id, ff_id, status) VALUES(#Now()# , "
+ getUserId() + ", " + s_id + ", 1, 0)");
However, this always results in a syntax error. Attempting
to enter a hard-coded date (12/7/02) also ends in a similar
error.
However, I am more interested in knowing how to insert the
current date.