I am using Crystal 8.5. I have inserted a summary on a group and now want to put a total in Group footer 1 that counts how many "1's" there are in the group, how many "2's there are, how many "3's" and so on. Can anyone tell me what's wrong with the following formulas. I am getting the error "The summary/ running total field could not be created."
WhilePrintingRecords;
numberVar SumA1 := 0;
WhilePrintingRecords;
if (Count ({ContHist.ONDATE}, GroupName ({Contact1.KEY1}))) = 1
then numberVar SumA1 := SumA1+ 1;
WhilePrintingRecords;
numberVar SumA1 := SumA1;
WhilePrintingRecords;
numberVar SumA1 := 0;
WhilePrintingRecords;
if (Count ({ContHist.ONDATE}, GroupName ({Contact1.KEY1}))) = 1
then numberVar SumA1 := SumA1+ 1;
WhilePrintingRecords;
numberVar SumA1 := SumA1;