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

Crystal Reports 11, lastfullmonth, Oracle 10g, BOXIR2

Status
Not open for further replies.

hsandwick

Programmer
Sep 10, 2001
286
US
Is it possible to capture data for 2 months ago using "lastfullmonth" in the record selection criteria?

I.e., lastfullmonth -1 is what I am trying to achieve.

Thank you,
Helen
 
minimum(lastfullmonth) -1

-- Jason
"It's Just Ones and Zeros
 
oops...that's only subtracting 1 day...

try this

dateadd("m", -1, minimum(lastfullmonth))

-- Jason
"It's Just Ones and Zeros
 
Your criteria should look something like this for the month before the last full month:

{table.date} in dateadd("m", -1, minimum(lastfullmonth)) to_ minimum(lastfullmonth)

The underscore is there by design.

~Brian
 
jdemmi and bdreed35:

Wonderful! Thanks so much for your help.

Regards,
Helen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top