G
GGill
In my combo box I have 'Name' data field, in the 'Name' column I have First,
Middle and Last name.
When I select name from drop down list every thing works fine and also if I
type first 2 letters it will find my record base on the firs word, but what I
need is to able to also filtering second, third words from the same row.
For example I have three records in my form
1 John Smith Michael
2 Marta Kay Stony
3 Sam Kevin Larry
So if I type in my combo box 2 letters
'st'
Then it should pull second record 'Marta Kay Stanly'
Please help me,
Thank you
Private Sub Combo36_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Name] = '" & Me![Combo36] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Middle and Last name.
When I select name from drop down list every thing works fine and also if I
type first 2 letters it will find my record base on the firs word, but what I
need is to able to also filtering second, third words from the same row.
For example I have three records in my form
1 John Smith Michael
2 Marta Kay Stony
3 Sam Kevin Larry
So if I type in my combo box 2 letters
'st'
Then it should pull second record 'Marta Kay Stanly'
Please help me,
Thank you
Private Sub Combo36_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Name] = '" & Me![Combo36] & "'"
Me.Bookmark = rs.Bookmark
End Sub