I
I
Ivan Vyatkin2018-06-02 22:51:03
Visual Basic
Ivan Vyatkin, 2018-06-02 22:51:03

Why can't I move backward through records?

In a recordset, the cursor is on the first record. When I click the "Previous Record" button with the rst.MovePrevious command, the error "The operation is not allowed in this context" is thrown. I tried setting rst properties - CursorType = adOpenDynamic and locktype = something like Optimistic, I don't remember exactly, but still the same error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2018-06-03
@SaNNy32

And why did you decide that there should not be an error? If the cursor is on the first record, then the previous record does not exist!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question