Iam calling crystal reports 8.5 from Access97 using crysta report control. I have assigned a query(SelectQuery1) to the crystal report.
I need a cumulative running total to calculate all previous months hours based on my STATUS (previous)
Initially I used Running total on my field "SumOfMember" and in the formula I used {SelectQuery1.Status}= "Previous"
and grouped by clientNumber.
This is working very well. But if my "SumofMember" field is having null value(" " and not 0 running total doesn't show any value in this formula and even my GRand total doesn't show any value.(SUM(sumofmember))= returns no rows when there is null value.
Inorder to overcome this problem I created a formula field
in which I have the following code
local Currencyvar curAmt;
if {SelectQuery1.Status} = "Previous" then
curAmt := sum({SelectQuery1.SumOfMember}, {SelectQuery1.Client Number});
THis is getting all the current and previus values. ANd not useful to me as it it NOT checking the STATUS CRITERIA.
I used other formula like this
SUM(fld,fldCond,Conditionvalue)
sum({SelectQuery1.SumOfMember},{SelectQuery1.Status},"Previous"
THis is giving an error cannot create summary/running total.
What is the another way for me to get the SUMMARY TOTAL based on STATUS condition.
IF status="PRevious" then
variable= sum(sumofmember) is not getting the CORRECT values for that status. PLEASE ADVICE ME.
THANKS
bhargi
I need a cumulative running total to calculate all previous months hours based on my STATUS (previous)
Initially I used Running total on my field "SumOfMember" and in the formula I used {SelectQuery1.Status}= "Previous"
and grouped by clientNumber.
This is working very well. But if my "SumofMember" field is having null value(" " and not 0 running total doesn't show any value in this formula and even my GRand total doesn't show any value.(SUM(sumofmember))= returns no rows when there is null value.
Inorder to overcome this problem I created a formula field
in which I have the following code
local Currencyvar curAmt;
if {SelectQuery1.Status} = "Previous" then
curAmt := sum({SelectQuery1.SumOfMember}, {SelectQuery1.Client Number});
THis is getting all the current and previus values. ANd not useful to me as it it NOT checking the STATUS CRITERIA.
I used other formula like this
SUM(fld,fldCond,Conditionvalue)
sum({SelectQuery1.SumOfMember},{SelectQuery1.Status},"Previous"
THis is giving an error cannot create summary/running total.
What is the another way for me to get the SUMMARY TOTAL based on STATUS condition.
IF status="PRevious" then
variable= sum(sumofmember) is not getting the CORRECT values for that status. PLEASE ADVICE ME.
THANKS
bhargi