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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select date ranges at print

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Would like to have a drop down list of date ranges to choose from when report is selected to preview or print.
ie: Month to date, Year to date, 1st qtr, 2nd qtr etc.
 
LWarner: I suggest that you create a string parameter whic you can then populate with just the terms you listed. This would enable you to then use a formula field to select data along the following lines:

if Instr({?parameter},"Month to date")>0 then Date in MonthToDate else
if Instr({?parameter},"Year to date")>0 then Date in YearToDate else
if Instr({?parameter},"1st qtr")>0 then Date in Calendar1stQtr else
if Instr({?parameter},"2nd qtr")>0 then Date in Calendar2ndQtr else
........

All of these functions work based upon either Currentdate (i.e. today's date) or PrintDate (I prefer this one as I can then set the date of the report to some other date)

Hope this helps David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top