Hi All
I have a basic Crystal report, which has 2 field placed at report detail level. First field is a
month field (number datatype). The second field is a string field.
I have made this formula a shared numbervar as this standalone report will get integrated as a
subreport into a main report. But when I run this report as a standalone my formula does not
bring back correct values even though I find the criteria correct.
My formula
WhilePrintingRecords;
If Previous({stringvalue}) = 'Y'
THEN
Shared NumberVar Monthfig := {month}
Else
Shared NumberVar Monthfig := Previous({month})
When I restrict the {month} field through select expert, to a month the above
formula comes back incorrect whilst when running all the above formula is correct. I dont quite
understand whats going on?
Any ideas?
Many Thanks.
I have a basic Crystal report, which has 2 field placed at report detail level. First field is a
month field (number datatype). The second field is a string field.
I have made this formula a shared numbervar as this standalone report will get integrated as a
subreport into a main report. But when I run this report as a standalone my formula does not
bring back correct values even though I find the criteria correct.
My formula
WhilePrintingRecords;
If Previous({stringvalue}) = 'Y'
THEN
Shared NumberVar Monthfig := {month}
Else
Shared NumberVar Monthfig := Previous({month})
When I restrict the {month} field through select expert, to a month the above
formula comes back incorrect whilst when running all the above formula is correct. I dont quite
understand whats going on?
Any ideas?
Many Thanks.