SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Reporting Services Development
 Pass Value from Main To SubReport
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sunny_10
Yak Posting Veteran

65 Posts

Posted - 12/19/2012 :  02:50:47  Show Profile  Reply with Quote
Hi

I want to pass a value (I have a column ID in each row that i want to pass) from Main Report to Sub Report . Main Report has no parameter.

Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 12/19/2012 :  03:13:55  Show Profile  Reply with Quote
just add a new parameter in subreport. Call the call from main report for each row using jump to report or jump to url method and pass parameter values as Fields!ID.value from main report. The column ID should be included in dataset for main report

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sunny_10
Yak Posting Veteran

65 Posts

Posted - 12/19/2012 :  03:56:03  Show Profile  Reply with Quote
Hi

I am displaying Sub-report on the main report . How i can pass value

Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 12/19/2012 :  03:59:22  Show Profile  Reply with Quote
have you added the parameter to subreport rdl? if yes, you can pass parameter value inside subreport properties. set value as Fields!ID.value

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.58 seconds. Powered By: Snitz Forums 2000