Passing Parameters

J

Jen

Hi,

I have a bit of a problem trying to pass parameters to my report.

Basically, I have a standard form which accepts a number of values and also
calls a report. The report is populated from a query. The query prompts the
user to enter 3 values. What I want to do is to pass the values from the form
and use them as input values and not have the user be prompted to enter
anything.

I am sure there is a straight forward work around for this but I cant seem
to find it at the moment, so any help/tips would be appreciated.

Thanks,
Jen

P.S. I am using Access 2003
 
J

Jeff Boyce

Jen

One way to do this is to modify the query so the parameters are provided by
the form. Instead of using something like:

[Enter Your First Value]

as the criterion in your query, refer to the value on the form with
something like:

Forms!YourFormName!YourControlName

Then just leave your report based on the query, and continue to launch it
from your form (you may decide to do some validation in the button click,
before launch).
 
J

Jen

Hi Jeff,

Thanks for your help, it worked a treat.

Cheers,
Jen

Jeff Boyce said:
Jen

One way to do this is to modify the query so the parameters are provided by
the form. Instead of using something like:

[Enter Your First Value]

as the criterion in your query, refer to the value on the form with
something like:

Forms!YourFormName!YourControlName

Then just leave your report based on the query, and continue to launch it
from your form (you may decide to do some validation in the button click,
before launch).
--
Good luck

Jeff Boyce
<Access MVP>

Jen said:
Hi,

I have a bit of a problem trying to pass parameters to my report.

Basically, I have a standard form which accepts a number of values and also
calls a report. The report is populated from a query. The query prompts the
user to enter 3 values. What I want to do is to pass the values from the form
and use them as input values and not have the user be prompted to enter
anything.

I am sure there is a straight forward work around for this but I cant seem
to find it at the moment, so any help/tips would be appreciated.

Thanks,
Jen

P.S. I am using Access 2003
 

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