CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    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?


  2. #2
    Join Date
    May 1999
    Location
    Wisconsin, USA
    Posts
    953

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured