I keep getting an error when I attempt to update a ResultSet - Fetch type out of range
Here is the code:
String strSQL = "Select * From tblwEquipSched Where fldwEquipSchedKey = " + intSheduleKey;
try
{
Statement stmt = conUserCurrentConnection.createStatement();
ResultSet rResult = stmt.executeQuery(strSQL);
if (rResult.next())
{
rResult.moveToCurrentRow();
rResult.updateDate("fldwEquipSchedPMDate", new
java.sql.Date(dteLastPMDate.getTime()));
rResult.updateRow();
}
rResult.close();
}
catch (SQLException e)
{
System.out.println(e.getMessage());
}
From doing a few System.out.printlns - I know it is hanging up when I call updateRow().
Any ideas?
Thanks
Matt
Here is the code:
String strSQL = "Select * From tblwEquipSched Where fldwEquipSchedKey = " + intSheduleKey;
try
{
Statement stmt = conUserCurrentConnection.createStatement();
ResultSet rResult = stmt.executeQuery(strSQL);
if (rResult.next())
{
rResult.moveToCurrentRow();
rResult.updateDate("fldwEquipSchedPMDate", new
java.sql.Date(dteLastPMDate.getTime()));
rResult.updateRow();
}
rResult.close();
}
catch (SQLException e)
{
System.out.println(e.getMessage());
}
From doing a few System.out.printlns - I know it is hanging up when I call updateRow().
Any ideas?
Thanks
Matt