File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Updating Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Updating Date " Watch "Updating Date " New topic

Updating Date

mujtaba habib

Joined: Feb 26, 2001
Posts: 12
i want to update a date/time field in MS Access Database. here is the code but its not working
java.sql.Date sqlDate = new java.sql.Date(new java.util.Date().getTime());

Error Message is: Error in row
its works fine when i comment updateDate row
any idea ??
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I don't think the JDBC-ODBC driver supports that method.

So much trouble in the world -- Bob Marley
mujtaba habib

Joined: Feb 26, 2001
Posts: 12
hmm.. but other updateXXX() methods r working fine
I agree. Here's the link:
subject: Updating Date
It's not a secret anymore!