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

How do I limit data return to Current Year + previous 2 years?

Status
Not open for further replies.

deborahyr

Technical User
Nov 14, 2002
63
US
Using Crystal XI, current database has data with multiple years, including future. How do I create a select records formula to only capture data in current year plus data from previous 2 years?

year(currentdate) - 2
 
I would expect to see results from "A". Thanks.
 
{table.datadate} in date(year(currentdate)-2,month(currentdate),day(currentdate)) to currentdate

'J

CR8.5 / CRXI - Discovering the impossible
 
Oops - Sorry just copy pasted the solution to C) by mistake - the info you need is:

{table.datadate} in date(year(currentdate)-2,01,01) to currentdate

Much simpler.

'J

CR8.5 / CRXI - Discovering the impossible
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top