And the means to accomplish that have been described.
If you really prefer a dynamic parameterized query then the parameter would be a reference to control on form. As long as that form is open, there will not be a popup input prompt.
However, might find this interesting http://allenbrowne.com/ser-62.html