Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating a table with an auto-number field

Status
Not open for further replies.

rincewind44

Programmer
May 21, 2003
33
0
0
IE
Hi,
I'm trying to make an addition to a table with an autonumber field, the sql code i'm using is

String sql = "update Individual set Points=?, Rebounds=?, Assists=?, Steals=?, Date=? where ID = ?";

This adds values to all the fields apart from the autonumber field which is the primary key.
I am getting a null pointer exception when I try this, is it due to the autonumber field? and if so can anyone advise me how to get around this problem?
Thanks
 
It is a Java exception when you try to use a null variable.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top