• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Returning a 0 value error

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Member


MemberDao
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Dave
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic