Solved

Reset Formula for Each Group

Posted on 2008-10-28
2
905 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Query to display duplicates ? 6 37
sql query Help 12 52
Crystal Reports No Record Returned 2 37
Query Records that don't match 8 32
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now