rincewind44
Programmer
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
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