Do you mean a saved query object? Not directly I think. Queries can use
custom functions. So maybe with a global declared variable, use a function to
return the value of the variable to the query. Or can set a textbox on a form
to the value of the variable and then if the form is open when you run the
query, have query refer to the form textbox.