cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to a sub report

Former Member
0 Kudos

Hi Everyone,

Can anyone please explain how to pass a parameter from the main report to the subreport in Crystal Reports?

The version used is Crystal Reports 2008.

Regards,

Neeraj Sharma

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Neeraj,

Following are the steps to pass the main report parameter to sub report

1. create a parameter in main report eg: param a

2. insert a sub report in the main report

3. right click on sub report select 'change sub report link' option

4. select the parameter 'param a' from the 'available field' window and add to 'fields to link to'

5. you will notice it will be automatically populated in the 'subreport parameter fields to use' link it to the sub report field >> click ok

This is how you can pass the main report parameter to the sub report

-Shahnawaz

Former Member
0 Kudos

Thanks Shahnawaz, I am able to do it now.

Regards,

Neeraj Sharma

Answers (0)