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

Date Ranges 1

Status
Not open for further replies.

ganjass

Technical User
Dec 30, 2003
154
GB
cr8
sql2000

Hi All

I need a report to use 2 dateranges that sum all accounts for the last year to the start of the last full month, and the start of this year to the start of the lastfullmonth

ie for this month i would need the daterange of last year to, but not including July, ie the end of june, and the start of this year to the end of june

Thanks in advance
 
Try this in your Record Selection Criteria:

Code:
{table.date} in minimum(lastyearYTD) to dateadd("m",-1,minimum(LastYearMTD))-1
OR
{table.date} in minimum(YearToDate) to dateadd("m",-1,minimum(MonthToDate))-1

~Brian
 
thats along the lines of what i was thinking, nice one
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top