I have a formula in crystal report
{LEAVES_APPROVAL.MONTH_YEAR} =
switch
(
{?EnterMonth}="Previous","0"+ToText(Month(CurrentDate)-1)+ToText(Year(CurrentDate))
) and
{LEAVES_APPROVAL.DEPT} = "Fiscal"
If the value of parameter is "Previous" then it selects the data for the previous month. This works fine in CR but when I publish this report in CE10 it does not work. If I take that portion of formula out from the record selection formula then the report works.
I am using Oracle 10g and CE10 and CR10.
Any help will be realty appreciated.
Thanks.
{LEAVES_APPROVAL.MONTH_YEAR} =
switch
(
{?EnterMonth}="Previous","0"+ToText(Month(CurrentDate)-1)+ToText(Year(CurrentDate))
) and
{LEAVES_APPROVAL.DEPT} = "Fiscal"
If the value of parameter is "Previous" then it selects the data for the previous month. This works fine in CR but when I publish this report in CE10 it does not work. If I take that portion of formula out from the record selection formula then the report works.
I am using Oracle 10g and CE10 and CR10.
Any help will be realty appreciated.
Thanks.