wood burning stoves 2.0*
The moose likes JDBC and the fly likes Returning a 0 value error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Returning a 0 value error" Watch "Returning a 0 value error" New topic

Returning a 0 value error

Roberto Favaro

Joined: Mar 23, 2004
Posts: 24
Im working on a project where I add members to a database(access at the minute), add amend and delete to this database. I can also find a member by id,name,address,etc. Im using a primary key generatorEverytime I retrieve a member from the database it returns a value of 0 for the id.It should be returning a value from the database.Im totally confused,any help would be greatly appreciated.Thanks


David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Holy crap that was a waste of time

Firsly: far too much code. In my signature is a link to asking questions the right way. You can't post that much code and expect antone to help, we're volunteers and just don't have the time.

Secondly, my guess is the problem is in the pk generator, and you haven't included it.

I agree. Here's the link: http://aspose.com/file-tools
subject: Returning a 0 value error
Similar Threads
how to convert to statements to an array
returning an int
Adding code to return an ArrayList of objects
Problem in displaying multiple search results
data mismatch error