I have the following formula that pulls information from a sub report onto my main page (a summary page) .....this works fine except within these sub codes I have casenumbers, and some casenumbers appear in more than one SubCode. As a result I am trying to figure out how to change this formula to do this count but only to count these SubCodes if the casenumber is unique/distinct within these subcodes......
numberVar a1;
if
{PendingActions.SubCode}in [120,130,140,145,150,155,160,165,170,175,180,190,195,207,215]
then a1 := 1
numberVar a1;
if
{PendingActions.SubCode}in [120,130,140,145,150,155,160,165,170,175,180,190,195,207,215]
then a1 := 1