|
-
Nov 26th, 2007, 01:54 AM
#1
Thread Starter
PowerPoster
[RESOLVED] How can I add subtotal fields from different subreports to get a grand total
Hi guys,
I have 6 subreports and I use formulas to get a subtotal on each subreport. I need to add all of the subtotals to get a grand total. How can I do this.
-
Nov 26th, 2007, 02:38 AM
#2
Re: How can I add subtotal fields from different subreports to get a grand total
Create a running total formula that sums and doesnt reset unpon any changing groups etc.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 26th, 2007, 04:29 AM
#3
Thread Starter
PowerPoster
Re: How can I add subtotal fields from different subreports to get a grand total
Hi Robdogg,
I have a subreport called "execute" for example. Within that subreport I have a formula called "exsub" that calculates the subtotal. I have a main report which contains all these sub reports. How can I reference the subreport formula field in the main report.
-
Nov 26th, 2007, 11:09 AM
#4
Re: How can I add subtotal fields from different subreports to get a grand total
Are you using Crystal Reports? Which version? If you are using Crystal check out "Shared Variables".
-
Nov 27th, 2007, 12:36 AM
#5
Thread Starter
PowerPoster
Re: How can I add subtotal fields from different subreports to get a grand total
 Originally Posted by brucevde
Are you using Crystal Reports? Which version? If you are using Crystal check out "Shared Variables".
Hi Brucevde,
I am using crystal. Will have a look now.
-
Nov 27th, 2007, 01:04 AM
#6
Thread Starter
PowerPoster
Re: How can I add subtotal fields from different subreports to get a grand total
Thanks Brucevde,
You are a Crystal genius.
I have got it to work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|