Passing a variable to a query

  • Thread starter Joseph Greenberg
  • Start date
J

Joseph Greenberg

Is there a way to pass a variable to a query? As an example, as a criteria?
 
J

June7 via AccessMonster.com

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top