D
davea
Hello
I have a form that calculates totals based on contents of fields from a
subform. It works fine but if the subform has no data to add up the
text box(s) on my main form display "#Error". I know why it does this
but need to change "#Error" to "0".
Here is my calculated field code on the main form:
=(EmployeeDetailssubformi.Form!CostRate)*[HoursEmp1]
If there is nothing to calculate this field displays "#Error". I need
it to display "0".
Anyone got any suggestions?
I have a form that calculates totals based on contents of fields from a
subform. It works fine but if the subform has no data to add up the
text box(s) on my main form display "#Error". I know why it does this
but need to change "#Error" to "0".
Here is my calculated field code on the main form:
=(EmployeeDetailssubformi.Form!CostRate)*[HoursEmp1]
If there is nothing to calculate this field displays "#Error". I need
it to display "0".
Anyone got any suggestions?