Solved

Access SubReport data from main report in Reporting Services

Posted on 2009-07-06
4
580 Views
Last Modified: 2012-05-07
I think the title says it all, i'm using version 2005
0
Comment
Question by:CurtinProp
  • 2
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 24784367
As far as I know there's no way to do this.  You can pass data via parameters to a subreport but not in the other direction.  If you need the same data in the main report, you'll need to repeat the dataset there...
0
 
LVL 2

Author Comment

by:CurtinProp
ID: 24791303
I want to parse just single values back to the sub report, so I can do some totaling.

subreport has 3 rows, but main reports has 1

e.g need to get total value from all 4

Possible?
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 24791866
If it's the subreport that should show the total of those 4 records you could pass the values from the main report to the subreport using parameters.  But, if it's only 4 records, why would you want to make it complicated?  Unless query performance is an issue, why not just create a dataset that fetches those 4 records at once?

More info on subreports and parameter usage: http://msdn.microsoft.com/en-us/library/ms160348.aspx
0
 
LVL 2

Author Closing Comment

by:CurtinProp
ID: 31600058
thanks mate
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

803 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