B
Bruce Rodtnick
Can I reset a calculated field to null if the result of the calculation
is zero?
What I have is a report with four subreports in it. I have to add the
results of all the subreports and I've written code (with some of y'alls
help) that turns null values into zeros so the calculation can take
place. On most of the subreports, if there is no data in it, the report
shrinks to nothing.
But one of the subreports also has two subreports in it. It works fine
as long as there is data in at least one of those sub-subreports. But
if there is no data in both sub-subreports, the subreport above it still
calculates to a zero value and the results (0) shows on the report.
While I can make the subreport invisable if it has a zero value:
If Me.txtTravelTotal = 0 Then
Reports.Budget.subTravel.Visible = 0
End If
the space on the report is still taken up by the invisible subreport.
My thought is that I could make the result of the subreport null again
and the report would shrink and not take up any space in the report. Or
is there another way of doing this?
Bruce Rodtnick
is zero?
What I have is a report with four subreports in it. I have to add the
results of all the subreports and I've written code (with some of y'alls
help) that turns null values into zeros so the calculation can take
place. On most of the subreports, if there is no data in it, the report
shrinks to nothing.
But one of the subreports also has two subreports in it. It works fine
as long as there is data in at least one of those sub-subreports. But
if there is no data in both sub-subreports, the subreport above it still
calculates to a zero value and the results (0) shows on the report.
While I can make the subreport invisable if it has a zero value:
If Me.txtTravelTotal = 0 Then
Reports.Budget.subTravel.Visible = 0
End If
the space on the report is still taken up by the invisible subreport.
My thought is that I could make the result of the subreport null again
and the report would shrink and not take up any space in the report. Or
is there another way of doing this?
Bruce Rodtnick