on 07-10-2015 1:15 AM
Good day!
I am new to Crystal Report. I am trying to add a subreport, is it possible to pass the running total from the main report to subreport? How?
Hi Sharmane,
1) Right-click the Subeport > Change Subreport links > Move the Running total field from the pane on the left to the pane on the right > uncheck the option 'Select data in subreport based on field'
2) Inside the subreport, you should see this running total as a 'parameter'
Another way to do this is to create a shared variable formula:
shared variable x := {#RunningTotal};
You can then create another formula inside the Subreport that refers to this variable like so:
shared variable x;
The only thing to remember is that for this shared variable to work inside the subreport, the first formula needs to be in a section above the section that holds the subreport.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.