I have a form that displays JobTime records in a subform. In the subform I total HbE from the query.
How can I use '=iif(iserror(sum(HbE), 0, sum(HbE))' as the Control Source of the field in the form footer?
If the subform allows additions, Nz will work, if not, the usual place to put the statement you show is on the parent form, with a proper reference to the subform.
the Form JobForm contains a subform JobTimesubform which is based on a query. In the footer of JobTimeSubform is a field 'TotalHrs' which has source =Sum(HbE)which is field in query.
On the JobForm I have afield whose source is [Form].[JobTimeSubfield]![TotalHrs]
If no records are found - I get #Error in the field.
How can I test for no data and load 0 instead?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.