Solved

Reset Formula for Each Group

Posted on 2008-10-28
2
913 Views
Last Modified: 2013-11-15
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

0
Comment
Question by:rdornisch
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 22823793
In the group header use another formula field:

//@reset
Global stringVar VEmail:="";
""

I think I would be surprised if you could do this
 'whilereadingrecords'

I would have expected 'WhilePrintingRecords'
in both formula fields.
0
 

Author Comment

by:rdornisch
ID: 22823937
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?
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question