HI,
It seems you are finding problem to get the value in sub report to the main report.
you can use "Shared" to do so in your formula.
for eg:
I will use a formula "MyValue"
The formula content will be as follows
1. In Main Report
Shared Numbervar MyValue;
MyValue:=10;
2.In Sub Report
Shared Numbervar MyValue;
MyValue:=MyValue+10;
(Note : I have created the formula both in main report and subReport.)
Now How does this Actually works?
Let me Place the Formula which I had created, In different Sections.
1.For Main Report.
a.Page Header Section.
b.Page Footer Section.
1.For Sub Report.
a.Page Header Section.
Now its the Time for Output.
10 - Page Header Section,Main Report.
20 - Page Footer Section,Sub Report.
30 - Page Header Section,Main Report.
Hope you have understood the basic by this example.
Using "Shared" in formula can handle still more complicate things easily.
This was just a Simple example.You willl be able to uderstand about using "Shared" ,by placing the formula created in different sections of subReports and Main Reports.
For more clearification in Crystal Reports you can contact me any time.
Warm Regards
Keval Raj