Roy
March 5th, 1999, 12:42 PM
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
Thanks
Roy
|
Click to See Complete Forum and Search --> : Moving the recordset Roy March 5th, 1999, 12:42 PM 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 HQC March 5th, 1999, 08:16 PM You can take the content of selected text, then use find method of Recordset object to jump to this record ! Ravi Kiran March 29th, 1999, 12:15 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |