Skip to Content
avatar image
Former Member

Passing Main Report Parameter into Subreport Command

I have a report that I am working on that has a command in the main report with Begin and End Date as the parameters. I cannot figure out how to pass the Begin and End Date into my command in my subreport. I have tried several different combinatins in the changer subreport links, but have had no success. Has anyone beemn successful at trying to do this?

Thanks,

Jerem

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 07, 2016 at 09:34 PM

    Try this:

    1. Go to the Subreport Links.

    2. On the top left under "Available Fields", select the Begin Date parameter and move it to the top right under "Field(s) to link to".

    3. On the bottom right, UNCHECK "Select data in subreport based on field".

    4. On the bottom left, drop down the list under "Subreport parameter field to use" and select the Begin Date parameter from the subreport's command.

    5. Repeat this process for the End Date parameter.

    Note that you must have the parameters already set up in the command in the subreport in order for this to work.

    For general information about Command best practices, see my blog post here: https://blogs.sap.com/2015/04/01/best-practices-when-using-commands-with-crystal-reports/.

    -Dell

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 08, 2016 at 12:45 PM

    I don't know how I didn't try it that way, but it worked just perfect!

    thanks,

    Jeremy

    Add comment
    10|10000 characters needed characters exceeded