| 'load a recordset into a listbox and take care of the bookmarks Dim bookmarks1() As Variant List1.Clear With rsRecordset.Recordset .MoveLast ReDim bookmarks1(.RecordCount) .MoveFirst Do While Not .EOF List1.AddItem .Fields("FieldName") List1.ItemData(List1.NewIndex) = List1.ListCount - 1 bookmarks1(List1.ListCount - 1) = .Bookmark .MoveNext Loop End With 'in the List1_Click event: On Error Resume Next rsRecordset.Recordset.Bookmark = bookmarks1(List1.ItemData(List1.ListIndex)) |
Load a recordset into a listbox and take care of |
Express News India | Freelance ecommerce web development India