Answered
I've added 5 fields together (G11+G12+G13+G14+G15)and totalled them in
G1Total = G11+G12+G13+G14+G15. Then I want to divide the following
G1FinalTotal = G1Total / G1NumberofItems
But the problem is that FormCalc is trying to divide G1NumberofItems before there is a value entered there. Can someone help me with the HasValue code? I know what I have to do, but don't know how to do it, where to apply it, or what to call it!
Thanks
I would expect that the HasValue function returns true for non-null, non-blank and non-empty values. I would expect zero is a non-null, non-blank and non-empty value.
I would look at using an 'if' statement to test for a non-zero value and then perform the division for non-zero values.
George Kaiser