Hi there
My apologies to begin with if this question is a little convoluted...
I am using CR 7, reading out of a SQL database.
I use a formula that concatenates records into one string, and splits the string when it gets close to the 254 char limit. It is as follows:
This formula sits in the details section (which is suppressed) and prints to 2 formulae placed in the group footer section:
The first formula is this:
The second formula is this:
The problem I have is that these formulae do not suppress duplicate entries, and I don't want to be reporting the same product over & over. Duplicates do not necessarily follow each other. I am also using a similar set of formulae in the same report to output processing categories. The old right click->suppress duplicates action does not work on either the first formula or the two smaller one.
Any help would be greatly appreciated - thanks.
My apologies to begin with if this question is a little convoluted...
I am using CR 7, reading out of a SQL database.
I use a formula that concatenates records into one string, and splits the string when it gets close to the 254 char limit. It is as follows:
Code:
WhilePrintingRecords;
StringVar list;
StringVar list1;
If list="" then
list := {reg_product.description}
else If Length(list) <= 150 then
list := list + ", " + {reg_product.description}
Else if
list1="" then
list1 := {reg_product.description}
else
list1 := list1 + ", " + {reg_product.description}
This formula sits in the details section (which is suppressed) and prints to 2 formulae placed in the group footer section:
The first formula is this:
Code:
WhilePrintingRecords ;
stringVar list;
stringVar lastList;
lastList := list;
list := "";
lastList
//listPrem;
The second formula is this:
Code:
WhilePrintingRecords ;
stringVar list1;
stringVar lastList1;
lastList1 := list1;
list1 := "";
lastList1
The problem I have is that these formulae do not suppress duplicate entries, and I don't want to be reporting the same product over & over. Duplicates do not necessarily follow each other. I am also using a similar set of formulae in the same report to output processing categories. The old right click->suppress duplicates action does not work on either the first formula or the two smaller one.
Any help would be greatly appreciated - thanks.