I want a form field to show zero even when it should show a #Div/0! error message. I have the field doing a calculation to show the wage per hour in two places, one based on the employer’s information from the pay stub, and the other based on the employee’s own records of how many hours they worked in a pay period. However, we have not received this information from all the employees yet. Until we do receive the info and input it, this field needs to just show zero. I tried this code in the properties of the event procedure:
Private Sub EE_Wage_per_hr_AfterUpdate()
If EE_Wage_per_hr.Value <= 0 Then
EE_Wage_per_hr.Value = 0
End If
End Sub
But it doesn't return anything other than the same error message. Obviously, I am new to this, so any help would be appreciated.
Thanks.