I have a subform which has a listing for additional costs if required. The user inputs the detail and the amount. This is a continuous form, based upon a ConcernID. I have a total in the form footer which gives an overall additional cost total. This total is then transferred to the main form. The problem is these additional fields are not always used. If there are not additional costs, there is not a total field that can be used for the main form and hence the overall cost total (calculated field) of the main form is not showing a total . I would like the total on the subform to state 0 if no records. My control source in my subform is as follows:
=Sum(NZ([Amount],0))
My conrol source in my main form for the total is as follows:
=IIf(IsNull([ConcernID]),0,DSum("[Amount]","ConcernOtherCosts","[ConcernID]=" & [ConcernID]))
My control source in my main form for the overall ConcernID total is as follows:
=NZ([Labour]+NZ([Travel])+NZ([Other])+NZ([Trucking])+NZ([Costs])+NZ([Parts]))
What am I missing.
Thanks.
=Sum(NZ([Amount],0))
My conrol source in my main form for the total is as follows:
=IIf(IsNull([ConcernID]),0,DSum("[Amount]","ConcernOtherCosts","[ConcernID]=" & [ConcernID]))
My control source in my main form for the overall ConcernID total is as follows:
=NZ([Labour]+NZ([Travel])+NZ([Other])+NZ([Trucking])+NZ([Costs])+NZ([Parts]))
What am I missing.
Thanks.