You are doing this in the query directly? Should be using forms, not interacting with tables and queries. All/most of the criteria would come from form controls.
One way is to reference the form and controls in the query (which will prompt you for those values if you open it directly). Another is to build a sql statement in code behind the form and then run that sql. Those queries should be supporting other forms or reports.
EDIT - dang! Too late.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.