Im getting the following error

"3021 Either BOF or EOF is True, or the current record has been deleted.Requested operation requires a current record."

----------

This is my code

With rs
.Open strSQL, cn, adOpenDynamic, adLockOptimistic
.Delete
End With

rs.MoveNext
If rs.EOF Then
rs.MoveLast
End If

----------

I thought I took care of this error with the movenext and rs.eof check. What did I do wrong?

Thanks,

coopetj