-
No Current Record
I've begun playing with the MDB files and I have a basic MFC-CRecordView app. The navigator buttons on the toolbar work just fine until i do some work on the table: Click a button, go to the top, edit a field, loop until eof.
When I'm done, the view is on the last record, the navigator buttons for Next and Last are disabled and Prev and First buttons are enabled, as I would expect if EOF. If I click on one of the buttons I receive "Operation Failed, No Current Record". I can't move anywhere in the database.
OK I'll try again. If, after the loop, I add pRecSet->Prev() then I can move w/o the error. So my question is why/what is this situation? Phantom EOF record?
-
Re: No Current Record
Check out CRecordset::IsEOF().
From the on-line help:
Returns nonzero if the recordset has been positioned after the last record.
There is no current record.
-----
It basically means you have scrolled past the last record.