Sastry
thank you so much for your swift response! Its turns out your set of forumlas have got me about 50% of the way there. Ive noticed after creating that report it was coming across with a number of the same flags for example
"GSI, TFL, AND,"
"GSI, TFL, AND, GSI"
"GSI, TFL, AND, GSI, TFL" etc
so i adapted formula2 slightly to state this:-
Whileprintingrecords;
if {Category.Flag} = Next ({Category.Flag}) then " " else
Stringvar flag:= {Category.Flag}+','+ next({Category.Flag})
seems to sort of do the trick. but the problem is, some references only contract one flag and it doesnt seem to be picking that up. In other words, if one reference just has "AND" then i want it to show "AND" but if a reference has "AND" and "GSI" i want it to show "AND + GSI" if that makes sense?
thanks again for your help!!