Link to home
Start Free TrialLog in
Avatar of rdornisch
rdornisch

asked on

Reset Formula for Each Group

I am trying to build a report where I concatenate a buch of email addresses, but I can not figure out how to reset the var on each group change. Can any one help Please
WhileReadingRecords;
Global stringVar VEmail;
 
// need code to reset VEmail on the change of each group. 
 
VEmail := VEmail & {sql_Group.Contact Email} & "; ";
 
VEmail & "Smith@Smith.com";

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rdornisch
rdornisch

ASKER

Thanks Peter, that did it, my only issue is I am getting the last email for each group showing 2 times.
Also I did have to change it to WhilePrintingRecords.
Any thought on how to Stop the Dup issue?