Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parameters to main report and 2 subreports?
Message
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00716962
Message ID:
00717183
Views:
13
>But then I also want to pass the same three parameters to the first subreport and then pass the same three parameters to the second subreport.

Steve,

I would personally keep the parameter fields in the main report, eliminate the parameter fields in the subreports and then create a formula field in the main report that declares 3 Shared variables. If you look in the help docs, vars declared as Shared are then accessible from subreports.

So, once you assign values to the shared vars in the parent report, the subreports should be able to access their values as long as they are declared in the subreport with the same name and as being shared. I think the other catch is that the subreport has to occur in a section after the variable has been assigned in order to have it be visible. You may want to fool around with that a little but I think that's the case.

Now that I think of it, another method would be to establish the parameter field matching in the subreport link dialog where you dictate the field mapping/linking between parent and subreport.

Hope that helps.

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Previous
Reply
Map
View

Click here to load this message in the networking platform