I have a form that has among many other controls, 5 controls that will have numerical data entered into them. Then the succeeding control on the form should add the 5 controls and then divide by the count of the controls that have a value in them. Most of the time all five controls will have a value so you would divide by 5, but there may be an occasional exception where one or two controls will not have a value.
So, I need to account for this possibility in my calculated total control.
What I need is coding to add the 5 controls and then divide by the COUNT of the controls that have a value.
Can anyone help me with this? I would be very grateful.
So, I need to account for this possibility in my calculated total control.
What I need is coding to add the 5 controls and then divide by the COUNT of the controls that have a value.
Can anyone help me with this? I would be very grateful.