Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET 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 July 5th, 2005, 05:24 AM
Registered User
 
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default grouping / totaling

crytsal grouping problem Posted on: 07/05/2005 03:17:14




I have tables as follows

ordHead
--------
orderNo
qty

ordDet
------
orderNo
descr

and ordDet can have many rows for each orderNo. ordHead can only have one row per orderNo.

I create a report and link the two tables on orderNo.

I then print ordDet.descr in the detail section, and group on orderNo. In the group header I show the ordHead.qty

I then do a grand total on qty.

So the report looks like this

Order No : 101 Qty : 10
   Descr line 1
   Descr line 2
   Descr line 3

Order No : 102 Qty : 20
   Descr line a
   Descr line b
   Descr line c

now the grand total is 90 and not 30. I can see why it is doing it but what is the solution? any ideas?


 
Old July 12th, 2005, 05:07 AM
Registered User
 
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I sorted this by using a sub report.

So I created a report with the ordHead.

Then insert a subreport on the Order and linked them

Works a treat.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Totaling columns in a footer row of a GridView psimonson ASP.NET 2.0 Basics 1 May 5th, 2008 01:34 PM
need help totaling a table michael193nj Access VBA 0 March 19th, 2008 10:08 AM
Protect cells and allow grouping/un-grouping sfreuden Excel VBA 4 December 14th, 2006 08:01 AM
Grouping List chemi XSLT 1 October 20th, 2005 09:36 AM
Grouping Records banarieo XSLT 1 September 28th, 2005 10:39 AM





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