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

Record Select on Last Year Last Full Month 1

Status
Not open for further replies.

dleewms

Programmer
Aug 19, 2001
118
US
I'm using Crystal XI. I need to filter my records and get only last year's records up to the last day of the last full month. There is a handy lastfullmonth function I can use if I wanted records up to June 30, 2011. I need to filter them for records with an invoice date between January 1, 2010 and LAST YEAR'S last full month (i.e. June 30, 2010).

In the select records formula editor I've started to create the formula as:

{sr.invoice_date} in LastYearYTD or sr.invoice_date in ____________ (need syntax to get Last Year Full Month.

Thanks!
 
dateserial(year(currentdate)-1,1,1) to
dateserial(year(currentdate)-1,month(currentdate),1)-1

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top