I use this formula in my report
Code:
NumberVar lPartDays;
StringVar sDayAss;
StringVar sTemp;
sTemp:="ppppp";
If sDayAss = {TBLASSESSOR.STRKNOWNAS} then
lPartDays:=0
else
lPartDays:={@WorkDays};
sDayAss := {TBLASSESSOR.STRKNOWNAS};
lPartDays
This Formula is supposed only give me {@WorkDays} if it is a new person. When i run the report for the first time it gives me the wrong answer, the answer is inflated as it appears that it has given me {@WorkDays} all the time ignoring the formula.
You will see in the formula that there is a variable (sTemp) that does nothing, if after i have run the report and have the wrong answer i go into this formula and change this variable. Then when the formula is saved and closed and the report is viewable again then the formula field displays the correct answer.
As you can imagine this is very annoying. Has anyone experienced this kind of thing before? Can anyone give me any help?
Please note i have tried to use the Previous function but using this it will not allow me to have a summary field using SUM to add up all the values.
Any assistance would be appreciated
Deleco