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

MonthToDate formula

Status
Not open for further replies.

dkc

MIS
May 2, 2001
8
0
0
US
Crystal Reports v9.0
I have the following formula
IF {SO_Master.ORDDTE_27} in MonthToDate THEN {@EXTPRICE} ELSE 0
It returns nothing, even though there is data that falls in this range. The LastYearMTD formula also returns nothing, when in fact there is data in this range.
I have a formula
IF {SO_Master.ORDDTE_27} in LastFullMonth THEN {@EXTPRICE} ELSE 0
This formula works just fine.
I can extract the current month to date data with the formula
if {SO_Master.ORDDTE_27} in date(year(currentdate-1), month(currentdate-1),1) to currentdate-1
then {SO_Detail.PRICE_28} else 0

Is there a bug or something in the MonthtoDate or LastYearMTD functions that cause them not to work or what?

Thanks Deb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top