Skip to Content
avatar image
Former Member

Passing parameters to a sub report

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 28, 2012 at 05:46 PM

    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

    Add comment
    10|10000 characters needed characters exceeded