How to pass parameter value to the subreport in crystals

naresh

Active member
Joined
Jul 4, 2006
Messages
38
Programming Experience
1-3
Hi, I think I am posting for simple queries. But I dont have option . Can any one tell how I can pass parameter value to the sub report via coding.
I would like to say more clearly. I have 2 stored procedure for the report and subreport each one take @cutomerId as the parameter(both)
I know how to write the code for passing the main reports parameter. can any one help me how to pass the parameter value via coding for the sub report
thanks in advance
Naresh
 
use the main report's parameter

The best process here is to create a Branch parameter *in your subreport* and use that in your Select Expert just like you do in the main report.
Rt-click on the subreport and choose 'Change Subreport Links' and you'll be able to link the parameter in the main report to the one in the subreport.
This should automatically write your record selection formula using the main reports parameter.

Hope thta helps...
 
Back
Top