I am using crystal reports 8.5 to query an access database.
Our company helps farmers sell their crops (commodities) for the best possible value. The report I am creating shows each farmer the individual sales we have made for each of their commodities on a separate page in the report.
I show the actual sales for each commodity in a subreport called contract sales.
Currently I am trying to pass the Average state basis (basis is what a farmer pays an elevator to process the commodity) from the main report to the sub report.
I calculate the avg state basis in the main report Group Footer #1A. The Subreport is in the main reports Group Footer #1B.
Using shared number variable I can easily get the avg state basis to display in the sub report. However when I try to use the shared number variable for the avg state basis in a formula within the subreport, I get the error message “a Running total can not refer to a print time formula”.
I have tried setting the formula in the main report to “whileprintingrecords” where I initially create the shared numbervar, but that didn’t seem to help. I have also tried setting the formula in the subreport to whileprintingrecords where I bring the shared numbervar into the subreport. Again, no help.
I’m guessing I should be able to accomplish this one way or another using the whileprintingrecords statement, but can’t seem to get it right.
Our company helps farmers sell their crops (commodities) for the best possible value. The report I am creating shows each farmer the individual sales we have made for each of their commodities on a separate page in the report.
I show the actual sales for each commodity in a subreport called contract sales.
Currently I am trying to pass the Average state basis (basis is what a farmer pays an elevator to process the commodity) from the main report to the sub report.
I calculate the avg state basis in the main report Group Footer #1A. The Subreport is in the main reports Group Footer #1B.
Using shared number variable I can easily get the avg state basis to display in the sub report. However when I try to use the shared number variable for the avg state basis in a formula within the subreport, I get the error message “a Running total can not refer to a print time formula”.
I have tried setting the formula in the main report to “whileprintingrecords” where I initially create the shared numbervar, but that didn’t seem to help. I have also tried setting the formula in the subreport to whileprintingrecords where I bring the shared numbervar into the subreport. Again, no help.
I’m guessing I should be able to accomplish this one way or another using the whileprintingrecords statement, but can’t seem to get it right.