G
Guest
I have a main form and a subform.
In the subform (continuous form) there is a field [text15] that summarises a
field in the subform. The control source of [text15] =sum([asubformfield])
In the main form i want to use this value to do some other calculations.
for instance with control source =[formname subform].Form!Text15 - [Text22]
My problem is that if there are records in the subform my code works
perfectly but if there are no records in the subform the calculation gives
#error.
Is there any way to prevent this and give me 0 instead of #error....
All these fields are supposed to be currency, but
Ccur(NZ([text15],0)) does nothing
Any help ??
In the subform (continuous form) there is a field [text15] that summarises a
field in the subform. The control source of [text15] =sum([asubformfield])
In the main form i want to use this value to do some other calculations.
for instance with control source =[formname subform].Form!Text15 - [Text22]
My problem is that if there are records in the subform my code works
perfectly but if there are no records in the subform the calculation gives
#error.
Is there any way to prevent this and give me 0 instead of #error....
All these fields are supposed to be currency, but
Ccur(NZ([text15],0)) does nothing
Any help ??