I have two groups in this report. I'm trying to find the number of errors made by a user.
My first group is the user, my second is the task. The task could have multiple detail lines so I've written the below formula:
whileprintingrecords;
booleanvar x;
numbervar y;
if Sum ({THAUDT00.THEXQT}, {THAUDT00.THPLN}) = Sum ({THAUDT00.THACQT}, {THAUDT00.THPLN})
then
x := false;
if Sum ({THAUDT00.THACQT}, {THAUDT00.THPLN}) <> Sum ({THAUDT00.THEXQT}, {THAUDT00.THPLN})
then y := y + 1;
y
It almost works, but it just keeps counting down the page anytime the second condition is met. How do I make the formula resett once a change of group is met.
Thanks in advance!
My first group is the user, my second is the task. The task could have multiple detail lines so I've written the below formula:
whileprintingrecords;
booleanvar x;
numbervar y;
if Sum ({THAUDT00.THEXQT}, {THAUDT00.THPLN}) = Sum ({THAUDT00.THACQT}, {THAUDT00.THPLN})
then
x := false;
if Sum ({THAUDT00.THACQT}, {THAUDT00.THPLN}) <> Sum ({THAUDT00.THEXQT}, {THAUDT00.THPLN})
then y := y + 1;
y
It almost works, but it just keeps counting down the page anytime the second condition is met. How do I make the formula resett once a change of group is met.
Thanks in advance!