I have seen many postings with this issue and have been unable to resolve my issue.
I have a continuous form with two fields, 'TaskDate' and 'DoByDate'. They are date fields in the table. Next to it, I have an unbound text box labelled 'var_Days' format=standard number and with the expression =([DoByDate]-[TaskDate]), and this returns a value. i.e. the difference in between the two dates in days. So far so good. All rows have a value. There are no gaps.
In the form footer, I have an unbound text box which has the expression =sum(var_Days); I have also tried =Sum(NZ([Var_Days],0)). Both return the #Error on form view.
Is there something I am missing?