Include Date Range in header

G

Guest

I need help getting a date range to show up in a report header. My report is
based off of a query that uses a Between.. And date parameter and I would
like the starting date and ending date to show up in a text box at the top of
the report and I can't figure it out. Thanks, I appreciate any help I can
get.
 
K

kingston via AccessMonster.com

Create a dialog that asks for the dates and base your query on that instead
of using a parameter query. Your report can reference the input boxes in the
form with something like:
[Forms]![FormName]![TextBox1]

If you really are adverse to this, you can scan the query's data using DMin()
and DMax(), but this won't return the user's parameters, only the minimum and
maximum dates in the data set.
 
M

Marshall Barton

OmahaAccess said:
I need help getting a date range to show up in a report header. My report is
based off of a query that uses a Between.. And date parameter and I would
like the starting date and ending date to show up in a text box at the top of
the report and I can't figure it out.


If you are using pop up query paarameters like [Start Date]
and [End Date], then a report text box can display the range
by an expression like:
= "Data from " & [Start Date] & " through " & [End Date]

If the parameters are references to form text boxes then use
those same references instead of [Start Date] and [End Date]
 
G

Guest

Thanks for all the respones, the "= "Data from " & [Start Date] & " through
" & [End Date]" expression worked great.



Marshall Barton said:
OmahaAccess said:
I need help getting a date range to show up in a report header. My report is
based off of a query that uses a Between.. And date parameter and I would
like the starting date and ending date to show up in a text box at the top of
the report and I can't figure it out.


If you are using pop up query paarameters like [Start Date]
and [End Date], then a report text box can display the range
by an expression like:
= "Data from " & [Start Date] & " through " & [End Date]

If the parameters are references to form text boxes then use
those same references instead of [Start Date] and [End Date]
 

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