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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XI - Shared values in a main report

Status
Not open for further replies.

campia

Technical User
Apr 20, 2007
77
BE
I'm trying to share values in two subreports and to use them in my main report. I created two formulas in each subreport and I store the value I need. The formulas works on the subreport because when I change my parameters fields the value changes. In the main report I want to add the two values from the subreports BUT in the main report the value is 0.

Can you help me ?


Main report:
shared numbervar valeur1;
shared numbervar valeur2;
numbervar total;
total:= valeur1 + valeur2

1 subreport:
shared numbervar valeur1 ;
valeur1:= Count ({Object.Start_Date})

2 subreport:
shared numbervar valeur2 ;
valeur2:= Count ({Object.Creation_Date})


Thanks,
andré

André
 
The subreports must run before you can display the result of the shared variables. So make sure the section of the report where you want to display this calculation is AFTER the section(s) where the 2 subreports are.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top