Results 1 to 5 of 5

Thread: MFC DAO - OnRecordNext/Prev/First/Last

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Allen Park, MI, Wayne
    Posts
    39

    MFC DAO - OnRecordNext/Prev/First/Last

    Quick question (I hope) for you guys..

    I'm working on a dialog app with a DAO recordview. I'm trying to put some custom logic in the events for the next/prev/last/first. So I add to View::OnRecordFirst/Next.. etc.. my logic works when the panes are clicked, but then the recordset move no longer works. I'm afraid I'm overriding the functions of the pane. Any ideas? Is there a better place to stick this code (no smart@ss comments..<G>)..

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Do you call the base implementation? Or don't you want to? If so, does your replacement work? Have you run the debugger?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Allen Park, MI, Wayne
    Posts
    39
    It's a CRecordview. So, I put it in the view. My choices are Doc, Set, View, and MainFrm. Is Set a better place? When I take my code out, First, Next, Previous, and Last work again.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You don't seem to have understood my questions. Is your code actually updating the info or do you ONLY do your special processing?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Allen Park, MI, Wayne
    Posts
    39
    Yes, I have run the debugger. Nothing fires when I click the panes. All I want to do is clear a list box when the recordset scrolls. It's looking like Recordset::Move may be the place to do this....? If so, how do I get a handle back to the view to clear the list box?

    Thanks!

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