Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing entered parameters in report 2

Status
Not open for further replies.

AngusCampbell

Technical User
Dec 29, 2004
4
US
I have parameters such as @StartDate and @EndDate in my report. (For V.90/ MS Access)

In the header, I wish to print these so the reader knows what date range the report is for. For example in a text field I have ...

For Period {@StartDate} through {@EndDate}

This works, but prints only the date range RETURNED, not the ones ASKED for (entered at prompts). In other words when you select a range of 12/1/04 through 12/15/04, it would print the dates 12/02/04 through 12/14/04 if there happened not to be records for the dates 12/1 or 12/15. This can be misleading to the reader.

Any ideas?

Thanks and Happy New Year
 
Hi

Create a formula to display your parameters ie;

"For The Period "+totext({?Start_Date}, "MMMM dd, yyyy")+" "+"To"+" "+totext({?End_Date}, "MMMM dd, yyyy")

If your parameter is a range try;

"For The Period " + totext(minimum({?DateRange}),"MMMM dd, yyyy") + " To " + totext(maximum({?DateRange}),"MMMM dd, yyyy")




Nuffsaid.
 
Assuming ?daterange is your parameter, then

"For Period " + totext(minimum(?daterange),"MM/dd/yyyy") + " through " + totext(maximum(?daterange),"MM/dd/yyyy")



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top