How refer to Parameter query in row source?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a query I need to run from two different forms, The query needs a
parameter from a control on the form. How do I specify the paramater in the
control's row source?
 
Text box controls don't have a Row Source. I expect you mean the Control
Source of a control. How are you entering the parameter and how does your
report know the parameter value?
 
Reference the Form control in the Criteria line of the query with the
following syntax:Forms![Myspecialformisnamedthis]!
[MySpecialFormTextBoxForTheParamaterIsNamedThis]. As long as the form is
open when you go to the run the query, the query will be able to get the
paramater from the named control object on the form.
 

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

Back
Top