sdonaldson
Programmer
Using CR v8.5.0.217 Developer Edition on Windows 2000.
I have a report which contains a two subreports, each called from the Detail section.
Each subreport displays a single numeric value using the following formula:
if isnull({NLhistory.year_no}) then
0
else
select {?CurrentPeriod}
case 1:
{NLhistory.month1}
case 2:
{NLhistory.month2}
(There are two subreports as I need to display the history from two different years on the same line of the report).
The only setting that I have changed on the Number tab of the Format Editor dialog is to uncheck "Allow Field Clipping".
When viewing the report, the first line (ie, the first execution of the subreport) shows zero (because there is no NLhistory record, so that's OK), but the subsequent lines of the report show blanks.
If I double click on the subreport on each line of the main report the value displayed in each case is "0.00".
It appears that CR is only executing the formula/applying the formatting to the first instance of the subreport only.
This problem only applies to the second of the two subreports - the first one shows "0.00" when there is no NLhistory record - but I cannot see any difference between the formula and formatting of the two subreports.
Any ideas as to what the problem is and how I resolve it ?
Thanks in advance,
Shaun
I have a report which contains a two subreports, each called from the Detail section.
Each subreport displays a single numeric value using the following formula:
if isnull({NLhistory.year_no}) then
0
else
select {?CurrentPeriod}
case 1:
{NLhistory.month1}
case 2:
{NLhistory.month2}
(There are two subreports as I need to display the history from two different years on the same line of the report).
The only setting that I have changed on the Number tab of the Format Editor dialog is to uncheck "Allow Field Clipping".
When viewing the report, the first line (ie, the first execution of the subreport) shows zero (because there is no NLhistory record, so that's OK), but the subsequent lines of the report show blanks.
If I double click on the subreport on each line of the main report the value displayed in each case is "0.00".
It appears that CR is only executing the formula/applying the formatting to the first instance of the subreport only.
This problem only applies to the second of the two subreports - the first one shows "0.00" when there is no NLhistory record - but I cannot see any difference between the formula and formatting of the two subreports.
Any ideas as to what the problem is and how I resolve it ?
Thanks in advance,
Shaun