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

Data from Subreport to be used in Main Report

Status
Not open for further replies.

crachic

Technical User
Dec 27, 2007
46
US
I am using Crystal XI.

I have a subreport that is calculating a number. The sample data I am using is calculating the number 10 which is the correct number. I have that number displaying in my main report. What I am looking to do is to take that number and use it in a calculation in my main report. When I go to create my formula, there is no listing for the subreport to use. Below is an example of what I am trying to do.

My subreport is called Licensed Beds. I need to take the number that the subreport creates and multiply it by the days in the month.
For Example:
((Licensed Beds) * (@Days in Month))
This is a basic example, my real life scenario is more complex but I have that part figured out.

Any thoughts on how to use a number that the subreport creates in a formula in the main report.

-crachic
 
Use a whileprinting shared variable in the sub report.

YOu can then call that var in the main report provided it is placed after the Sub report has executed.

Go to help and serach for shared variable it will tell you how to use.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top