Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formulas/Functions?

Status
Not open for further replies.

jconway

Programmer
Dec 14, 2005
50
I have a set of data in groups. In each group I have an acct #, date,
and text - grouped by date. Each group has x number of lines where x
varies. In the group footer, I want to concatenate all the text from
each line. I'm having trouble because of the carying number of items
in each group. Any help on how to go about doing this would be greatly
appreciated! Thanks!!!
 
You would use three formulas:

//{@reset} to be placed in the group header:
whileprintingrecords;
stringvar x;
if not inrepeatedgroupheader then
x := "";

//{@accum} to be placed in the detail section:
whileprintingrecords;
stringvar x := x + {table.textfield}+ ", ";//not sure whether you want
//to separate the text--I added a comma here

//{@display} to be placed in the group footer:
whileprintingrecords;
stringvar x;
left(x, len(x)-2);

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top