J
Jen Preston via AccessMonster.com
I have a main form with data filtered based on the company name pick from
the combo box. I have a button on this form to query this dataset of
records. But my query will not filter.
When I click on the button, I would like the query to bring up records
based on the dropdown company name. (to query all records with that company
name) Here's my code:
Private Sub QueryMissing_Click()
Dim sFilter As String
sFilter = [CompanyName]
CompanyName = sFilter
DoCmd.OpenQuery "qryMissingData"
End Sub
the combo box. I have a button on this form to query this dataset of
records. But my query will not filter.
When I click on the button, I would like the query to bring up records
based on the dropdown company name. (to query all records with that company
name) Here's my code:
Private Sub QueryMissing_Click()
Dim sFilter As String
sFilter = [CompanyName]
CompanyName = sFilter
DoCmd.OpenQuery "qryMissingData"
End Sub