Hi Guys,
I want to sum all the controls in my subForm but if there is a 0 then it won't show anything. Here is the code I am using in an unbound text box:
=Sum([HerSun])+Sum([DailyRec])+Sum([Met])+Sum([WoM])+Sum([JobCen])+Sum([VacBul])+Sum([Jou])+Sum([JouWeb])+Sum([NHSInt])+Sum([OpDa])+Sum([RefBy])+Sum([Sh])+Sum([Cam])
I have this in the bound controls:
=IIf([HerSun] Is Null,0,[HerSun])
Can anyone see where I am going wrong.
I want to sum all the controls in my subForm but if there is a 0 then it won't show anything. Here is the code I am using in an unbound text box:
=Sum([HerSun])+Sum([DailyRec])+Sum([Met])+Sum([WoM])+Sum([JobCen])+Sum([VacBul])+Sum([Jou])+Sum([JouWeb])+Sum([NHSInt])+Sum([OpDa])+Sum([RefBy])+Sum([Sh])+Sum([Cam])
I have this in the bound controls:
=IIf([HerSun] Is Null,0,[HerSun])
Can anyone see where I am going wrong.