|
-
March 5th, 1999, 01:42 PM
#1
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
-
March 5th, 1999, 09:16 PM
#2
Re: Moving the recordset
You can take the content of selected text, then use find method of Recordset object to jump to this record !
-
March 29th, 1999, 01:15 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|