dim rownumber as int = 0
Do While resultset1.NextRow
if rownumber = 14 then
something = resultset1.getint("buyprice")
end if
rownumber=rownumber+1
Loop
dim rownumber as int = 0
Do While resultset1.NextRow
if rownumber = 14 then
something = resultset1.getint("buyprice")
end if
rownumber=rownumber+1
Loop
JDBCResultSet is normal to create your own integer row number either starting from 0 or 1 then check , Keep in mind that in your case 14 is the 15th Row not the 14th.