parameters on reports

B

Bhavin

What is the method used to take a value from a field on a
form and use it as a parameter in a report that is
generated from a query, without the dialog box appearing
requesting the value off the form?

Thank you.
 
A

Art

Hi Bhavin
In the Criteria of the field in the query behind the form
and report, type in the following:
Forms![formname]![controlname]
Hope This Helps
 
W

Wayne Morgan

If the form is open and there is a value in the control (i.e. textbox) you
can refer to it in the criteria for the query. They syntax to do so is

[Forms]![FormName]![ControlName]

Access will probably put the brackets around each part for you, but if there
are spaces in the name, you may need to do it yourself.
 
J

John Vinson

What is the method used to take a value from a field on a
form and use it as a parameter in a report that is
generated from a query, without the dialog box appearing
requesting the value off the form?

Thank you.

Use a criterion of

=[Forms]![nameoftheform]![nameofthecontrol]

The form must of course be open at the time the report is launched.
 

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