P
Pete
Re Access 2003
I have an unbound form with a calculated control in the subform header :-
ControlSource = Nz(Sum([InvAmount]), 0)
I am filtering the subform when the user selects a PO# from the combo on the
parent form:-
.Filter = "[PO_No]=" & intPO_No
.FilterOn = True
This accurately displays the value when there are records to sum.
When there are no records to display in the Detail section of the subform
(after the filter is applied), I would like the control to display 0, but
instead the control displays nothing (blank). As I have another filed which
calculates the difference between this field and another; this too then
displays blank instead of zero.
So how can I get a calculated control to display 0 instead of blank, when
there are no records in the Detail section?
Many thanks.
Pete.
I have an unbound form with a calculated control in the subform header :-
ControlSource = Nz(Sum([InvAmount]), 0)
I am filtering the subform when the user selects a PO# from the combo on the
parent form:-
.Filter = "[PO_No]=" & intPO_No
.FilterOn = True
This accurately displays the value when there are records to sum.
When there are no records to display in the Detail section of the subform
(after the filter is applied), I would like the control to display 0, but
instead the control displays nothing (blank). As I have another filed which
calculates the difference between this field and another; this too then
displays blank instead of zero.
So how can I get a calculated control to display 0 instead of blank, when
there are no records in the Detail section?
Many thanks.
Pete.