M
Matt
Hi,
I've already had some help for this from an MVP, but I can't seem to
make it work correctly.
I have a search form that I am designing. The form contains a combo
box (so it Autocompletes searches) and a command button that searches
another form for the desired value. My problem is that it always
displays the results in the form it is searching in a filtered view,
only showing those records that relate to the search. Instead, I would
like it to jump to the correct record in the full display of records.
If possible, I would also like to give it the "Find Next" function,
since it will be jumping directly to a single record (the first hit).
Does anyone have any ideas? Here is my current code:
Private Sub cmdCompanyNameSearch_Click()
Dim strWhere As String
strWhere = "CompanyName like '*" & Me.CompanyNameSearch & "*'"
DoCmd.OpenForm "Contacts", , , strWhere
End Sub
Thanks,
Matt
I've already had some help for this from an MVP, but I can't seem to
make it work correctly.
I have a search form that I am designing. The form contains a combo
box (so it Autocompletes searches) and a command button that searches
another form for the desired value. My problem is that it always
displays the results in the form it is searching in a filtered view,
only showing those records that relate to the search. Instead, I would
like it to jump to the correct record in the full display of records.
If possible, I would also like to give it the "Find Next" function,
since it will be jumping directly to a single record (the first hit).
Does anyone have any ideas? Here is my current code:
Private Sub cmdCompanyNameSearch_Click()
Dim strWhere As String
strWhere = "CompanyName like '*" & Me.CompanyNameSearch & "*'"
DoCmd.OpenForm "Contacts", , , strWhere
End Sub
Thanks,
Matt