Here is what I have been trying. It works but not very smoothly.
Example:
A row has been selected in List26.
I click a row in List101 and the List26_click event runs instead of the
List101_click
I click the same row a second time and then the List101_Click event runs.
Are you able to see what is wrong in my code?
Private Sub List101_Click()
Dim i As Integer
For i = 0 To Me.List26.ListCount - 1
Me.List26.Selected(i) = False
Next i
End Sub
Private Sub List26_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[PKEY] = '" & Me![List26] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Private Sub List101_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Dim i As Integer
Set rs = Me.Recordset.Clone
rs.FindFirst "[PKEY] = '" & Me![List101] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Private Sub List26_Click()
Dim i As Integer
For i = 0 To Me.List101.ListCount - 1
Me.List101.Selected(i) = False
Next i
End Sub