Link to home
Start Free TrialLog in
Avatar of learn
learn

asked on

Correct the code from a book

following is the code I copied from a book. I think it is not correct!
If you think so, tell me how to correct it.

    With Adodc1.Recordset
        .Delete
        If Not .EOF Then
            .MoveNext
        Else
            .MoveLast
        End If
    End With
Avatar of Ruchi
Ruchi

Hope this works.

With Adodc1.Recordset
  .Delete
  .MoveNext
If .EOF then
  .MovePrevious
End If
End With
ASKER CERTIFIED SOLUTION
Avatar of Ruchi
Ruchi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of learn

ASKER

Yes, it works.