Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2007, 08:03 AM
Registered User
 
Join Date: Oct 2007
Location: Rochester, ny, USA.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.