debson
December 18th, 2005, 06:28 PM
Hi I have a report where I am adding up totals of a group in the the report footer my code for this is
IF {BKGCNT.BKESIZ}= 20 and
{BKGCNT.BKETYP}=["DC","DH","FP","HC","HW","OT"]then
numbervar X:=X +{BKGDTL.BTEQTY}
My problem is that BKGDTL.BTEQTY has duplicates which are also added to the equation giving a false total.
I am new to crystal but is there a code I could use to either delete the duplicate or ensure it is not added.
Any help would be great... thankyou in advance.
IF {BKGCNT.BKESIZ}= 20 and
{BKGCNT.BKETYP}=["DC","DH","FP","HC","HW","OT"]then
numbervar X:=X +{BKGDTL.BTEQTY}
My problem is that BKGDTL.BTEQTY has duplicates which are also added to the equation giving a false total.
I am new to crystal but is there a code I could use to either delete the duplicate or ensure it is not added.
Any help would be great... thankyou in advance.