?
Solved

Reset Formula for Each Group

Posted on 2008-10-28
2
Medium Priority
?
956 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

718 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