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

    Moving the recordset



    How do I click on the data within a listbox and get the data control to jump to that recorset position. Can anyone help me.


    Thanks


    Roy

  2. #2
    Join Date
    Apr 1999
    Posts
    1

    Re: Moving the recordset



    You can take the content of selected text, then use find method of Recordset object to jump to this record !

  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Moving the recordset



    Hi,


    Use the 'BookMark' property. I assume you are using DBList ( bound list control)

    Code sinppet would look something like this:


    Private Sub DBList1_Click()

    If Data1.Recordset.Bookmarkable Then

    Data1.Recordset.Bookmark = DBList1.SelectedItem

    End If

    End Sub


    sometimes you may need a .refresh if you are using some complicated recordset

    resulted from a SQL etc. Note : the derived recordset should be bookmarkable


    Ravi

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