2) On the Details place the @Accum
formula, putting your field into the second line:
WhilePrintingRecords;
StringVar Item:= {Your.Field}; // place your field
in place of {Your.Field}
StringVar Chain;
NumberVar ChCnt;
if ChCnt = 1
then (ChCnt:= 2; chain := Item)
else
if Length(Chain) + Length(Item) > 254 //see
note about this number below
then Chain := Chain else
chain := chain + ', ' + Item
3) On the Group Footer place the @Display
formula:
WhilePrintingRecords;
StringVar Chain
**Important
Note. A string formula cannot output more than 254 characters in
versions before v9. So if your items add up to over 254
characters this formula will not print them all. It will only
print the items that fit within the first 254 characters. You can
select any number lower than 254 to stop the accumulation
earlier. To get a longer string in versions before v9 you could
create a second parallell set of formulas that picks up where
this one leaves off. If you are using v9 or later you can
replace the 254 limit with any number up to and including 64,000 which
is the new limit on the output of a string formula.