G
Guest
I have a function which performs a calculation which is in turn called by a
query. Then I have a form with a bound control to display the result. The
problem is I cannot get it to format properly. I've set all the properties
for the text box, but it still shows an arbitrary number of decimel points
and even scientific notation. Can I format the result in the function? Here's
the code.
Public Function Calc_Int(Net, Gross)
If Net = Gross Then
Calc_Int = 1
Else: Calc_Int = Net / (Nz(Gross, 0))
End If
End Function
Thanks
query. Then I have a form with a bound control to display the result. The
problem is I cannot get it to format properly. I've set all the properties
for the text box, but it still shows an arbitrary number of decimel points
and even scientific notation. Can I format the result in the function? Here's
the code.
Public Function Calc_Int(Net, Gross)
If Net = Gross Then
Calc_Int = 1
Else: Calc_Int = Net / (Nz(Gross, 0))
End If
End Function
Thanks