In "Customers Info" Form I have unbound combo box used for Company/Last Name Search. In case of two or more same last names it returns only first (used combo box wizard with FindFirst method). How can I solve this problem, so it will return right record selected from combo box.
Code:
Private Sub Combo49_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CompanyLastName] = '" & Me![Combo49] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
…and another question. Is it possible to open dropdown part of combo box as soon as you begin typing first letter, without clicking on arrow at the right.
Thank you.
Code:
Private Sub Combo49_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CompanyLastName] = '" & Me![Combo49] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
…and another question. Is it possible to open dropdown part of combo box as soon as you begin typing first letter, without clicking on arrow at the right.
Thank you.