Include Between/And in Report Title

G

Guest

I have a simple tabular report based on the following query...

SELECT DISTINCTROW [Patient Treatments Table].body_part, Sum([Patient
Treatments Table].total_number_of_consults) AS [Sum Of
total_number_of_consults], Count(*) AS [Count Of Patient Treatments Table]
FROM [Patient Treatments Table]
WHERE ((([Patient Treatments Table].first_attendance) Between [Enter Start
Date:] And [Enter End Date:]))
GROUP BY [Patient Treatments Table].body_part;

Is it possible to automatically include the parameters from the Between/And
statement into the report title?

Many thanks for your help in anticipation.

Joe
 
A

Allen Browne

Add a text box to the Report Header section.

Set its Control Source property to something like this:
="Between " & Format([Enter Start Date:], "Short Date") &
" And " & Format([Enter End Date:], "Short Date")
 
G

Guest

Thank you Allen,

Your advice was exactly the answer to my query. It works fantastically well.

Joe

Allen Browne said:
Add a text box to the Report Header section.

Set its Control Source property to something like this:
="Between " & Format([Enter Start Date:], "Short Date") &
" And " & Format([Enter End Date:], "Short Date")

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Joe said:
I have a simple tabular report based on the following query...

SELECT DISTINCTROW [Patient Treatments Table].body_part, Sum([Patient
Treatments Table].total_number_of_consults) AS [Sum Of
total_number_of_consults], Count(*) AS [Count Of Patient Treatments Table]
FROM [Patient Treatments Table]
WHERE ((([Patient Treatments Table].first_attendance) Between [Enter Start
Date:] And [Enter End Date:]))
GROUP BY [Patient Treatments Table].body_part;

Is it possible to automatically include the parameters from the
Between/And
statement into the report title?

Many thanks for your help in anticipation.

Joe
 

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