i have an unbound list box with a long list of clients that is on the main form composed of multiple tabs. when selecting one client from the list box, the client name in the list remains highlighted and the scroll in the proper position as i click each tab. however, when i click back to the "main tab" the client name is no longer highlighted and the list goes back to the top even though the scroll bar stays in the proper position. how can i prevent this?
i have the following code in the after update:
Private Sub List367_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Client ID] = " & Str(Nz(Me![List367], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
List367.Requery
End Sub
i have the following code in the after update:
Private Sub List367_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Client ID] = " & Str(Nz(Me![List367], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
List367.Requery
End Sub