I have a Client form with thousands of clients and a combobox to get you to the record you want. Let's say I have twenty people with the last name Smith. Hitting the arrow on the combobox and then typing SMI gets you to the Smiths, if you use the arrow keys to arrow down to the Smith that you want, and then hit ENTER, gets you to the first Smith, not the Smith that you had selected.
I have never seen that before! Any ideas?
Private Sub cboFind_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ClientFamily] = '" & Me![cboFind] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.cboFind.Value = ""
End Sub
I have never seen that before! Any ideas?
Private Sub cboFind_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ClientFamily] = '" & Me![cboFind] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.cboFind.Value = ""
End Sub