Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "problem in updating data" Watch "problem in updating data" New topic
Author

problem in updating data

harsimran kochar
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

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
Greenhorn

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