aspose file tools*
The moose likes JDBC and the fly likes problem in updating data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem in updating data" Watch "problem in updating data" New topic

problem in updating data

harsimran kochar

Joined: Sep 09, 2011
Posts: 14
i have a program that has a database in access and i want to update data but when i click on update button on my frame nothing happens no error no exception and no work.
here is my code

and code of mehod filltable is

Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29287

When you say nothing happens, you mean executeUpdate() returns 0? If so, does the account id exist in the database?

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
harsimran kochar

Joined: Sep 09, 2011
Posts: 14
even it doesnt give 0 as output
I agree. Here's the link:
subject: problem in updating data
Similar Threads
problem in deleting data
Accessing One table with multiple Threads and Inserting Values
connecting to ms access database
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect
in creating project file from existing main files