No current row (Error 40009)

There was a call to rdoResultset.Edit when the cursor was positioned on an invalid row. This error may be caused by attempting to edit a deleted row, or by invoking Edit when the cursor is positioned either before the first row, or after the last row.

To avoid this error, move the cursor to a valid row and make sure you have a valid result set. You cannot use the Edit method if either the BOF or EOF properties are true.