Printing Query Promt Parameters in a report

V

vegman

I have a QUERY in Access 2003 that promts the user for a START and END date.
Is there a way to display the inputed START and END date from the QUERY in a
REPORT without having to retype it in the report?
 
F

fredg

I have a QUERY in Access 2003 that promts the user for a START and END date.
Is there a way to display the inputed START and END date from the QUERY in a
REPORT without having to retype it in the report?

Let's assume the exact query prompt is [Start Date] and [End Date]

Add an unbound text control to the Report Header.
Set it's control source to:
="For Sales between " & [Start Date] & " and " & [End Date]

The above text within the brackets must be identical to the bracketed
text in the query.
 
K

KARL DEWEY

Another way is to add them as a 'calculated' field. In design view grid
blank in FIELD row copy and paste parameter to look like this --
Parm1: [Start Date]
Parm2: [End Date]
or
Pram1: "For Sales between " & [Start Date] & " and " & [End Date]

Use Parm1 and Parm2 or the second Parm1 in your report.

--
Build a little, test a little.


fredg said:
I have a QUERY in Access 2003 that promts the user for a START and END date.
Is there a way to display the inputed START and END date from the QUERY in a
REPORT without having to retype it in the report?

Let's assume the exact query prompt is [Start Date] and [End Date]

Add an unbound text control to the Report Header.
Set it's control source to:
="For Sales between " & [Start Date] & " and " & [End Date]

The above text within the brackets must be identical to the bracketed
text in the query.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.
 

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