Wrox Programmer Forums
|
BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9
This is the forum to discuss the Wrox book Professional SQL Server 2005 Reporting Services by Paul Turley, Todd Bryant, James Counihan, Dave DuVarney; ISBN: 9780764584978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2007, 08:03 AM
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using Variables to Count Unique Records

Hello,

I am having a problem displaying values of variables calculated in custom code and displayed in report group footers.

[u]Example</u>


Group 1 Person - Initialize Counts to 0 and found logicals to False
Group 2 Company
Detail Person A Company A Sale 1 On-Time
              Person A Company A Sale 1 Late
              Person A Company B Sale 1 Late
              Person A Company B Sale 1 Late
Group 2 Nothing Displayed - Initialize found logicals to False
Group 1 Number of Orders: 4
               Number of Unique Company Orders On-Time: 1
               Number of Unique Company Orders Late: 2

The problem is that the last two counts are always 0. When I display the counts in the detail line they are correct. When I remove the initialize found logicals from group footer 2 the counts are the values of the first detail record. It appears that the header and footer calculations run at the same time. How do I stop this?

thanks for your help.

Dallas C Miller





Similar Threads
Thread Thread Starter Forum Replies Last Post
Count unique occurences Umasriram2 Excel VBA 2 May 28th, 2008 05:10 AM
Inserting unique records from a table to another elygp SQL Server 2000 0 September 10th, 2007 01:58 AM
Unique Records arholly Access 9 December 14th, 2006 08:22 AM
Unique records for reports Brendan Bartley Access 2 November 28th, 2005 06:35 AM
Count, sum, count a value, return records CongoGrey Access 1 April 18th, 2005 02:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.