G
Guest
I've created a parameter query and use a form to enter the criteria and a command button which runs the query and opens a datasheet containing the results. It works fine the first time I run a query, but if I close the datasheet window, then clear all the fields on the form, enter new criteria and hit the button to run the query based on the new info, it will not return any results. I have to close the form and reopen it to get the query to run. What can I do to make this form work without having to close the form and reopen it each time I want to run a new query?
Code for my commmand button is:
Private Sub cmdSearch_Click()
DoCmd.OpenQuery "qrySearchOrders", acViewNormal, acEdit
End Sub
Thanks,
Lisa
Code for my commmand button is:
Private Sub cmdSearch_Click()
DoCmd.OpenQuery "qrySearchOrders", acViewNormal, acEdit
End Sub
Thanks,
Lisa