I have a Search form "SearchF" with 2 fields Equipment # and Location.
I build the query "SearchQ" with criteria
and
Then I built the form "SearchQF"
The search button is in the main form. I have the sub form "results". The command works great using vba
The only thing is I do not want to see the sub form when I open the search form (datasheet view). I want the sub form hidden until I hit the search button in the main form.
Can anyone help?
I build the query "SearchQ" with criteria
Code:
(Like "*" & [Forms]![SearchF]![Equipment #] & "*")
Code:
(Like "*" & [Forms]![SearchF]![Location] & "*")
The search button is in the main form. I have the sub form "results". The command works great using vba
Code:
Private Sub Searchbar_Click() Me!Results.Form.RecordSource = "SearchQ" End Sub
Can anyone help?
Comment