post the code. From what I can recall, it happens when you try to read a record from a resultset before you move the cursor to the first record eg. This is wrong:
please post the code that deals with the cursor maybe..
Elahe Shafie
Ranch Hand
Joined: Dec 12, 2001
Posts: 291
posted
0
Here are part of my codes... stmt = con.createStatement();
//Execute an SQL query, get a resultSet rs=stmt.executeQuery("select userId, Password from security where userId ='"+userId+"' and password ='"+password+"'"); rs.next(); userId = rs.getString("userId"); stmt.close();
Roy Ben Ami
Ranch Hand
Joined: Jan 13, 2002
Posts: 732
posted
0
check if there is somthn in the resultSet. try the if(rs.next()) like Jamie suggested above.