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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display group data in another group

Status
Not open for further replies.

ksaab2002

MIS
Jan 6, 2005
66
US
How would I write a formula to display group data in another group?

I have a group1 on person, group2 on email (formula that grabs email if one is there) and group3 on invoice..One person, One Invoice, many emails. Group headers are suppressed and data is displayed in the footer.
I would like to display all possible emails in a list on the same line for any given Invoice?

My data looks like this:
Person Invoice EMail
JDoe 89782396
jdoe@test.com
jjdoe@yahoo.com

I would like it to look like this:
Person Invoice EMail
JDoe 89782396 jdoe@test.com, jjdoe@yahoo.com

I am using CR 10 and SQL 2000

Thanks in advance for any suggestions..

KSaab

 
Create three formulas:

//{@reset} to be placed in the person group header:
whileprintingrecords;
stringvar email := "";

//{@accum} to be placed in the detail section:
whileprintingrecords;
stringvar email := email + {table.email} + ", ";

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

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top