Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing information back from subreport

Status
Not open for further replies.

kela97

IS-IT--Management
Jul 28, 2003
7
US
I have a main report and the data in one of the field comes from one table if certain condition is met. If the condition is not met I supress this field and run a subreport that overlays this field. I am able to get the information what I need.

However, when I try to do a summation at the group level, the summation does not include the values that come from the subreport. IT only add the numbers that are generated in the main report.

Is there any way I can sum up the values coming from the sub report. I tried shared variables but somehow they need to be evaluated after the subreport which requires it to be placed in a different section. Even then I could not sum it.

Anyhelp would be appreciated.
 
Shared Variables should work for you, but keep in mind that:

1. Accumulate the value in a section following the subreport (into a different variable).

2. Reset the value of the shared variable in the subreport to zero in the header of the subreport. This will ensure the value from the prior group doesn't "linger" in cases where the subreport's value should NOT be added.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top