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 problem in updating data 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 "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
author & internet detective

Joined: May 26, 2003
Posts: 33102

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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
It's not a secret anymore!