The dialog box should run the query, not vice versa.
Set up a form containing all your criteria entry boxes, combos etc, plus a run query command button.
The On_Click event code of the button should be :
DoCmd.OpenQuery "QueryName", acViewNormal
DoCmd.Close acForm, "DialogFormName"
While the form is open, open the query as well, then go into the Builder. Under Forms, Loaded Forms you will find all the controls on your Dialog Form, thus you can make the query get the values from the form when the query runs.