Re: Precent
|
Actually, his problem is Divide By Zero, so you'd need something like this:
<pre>
Function CalcPercent(X as Single, Total as Single) as Single
Dim Result as Single
If Total = 0 Then
Result = 0
Else
Result = X * 100 / Total
End If
CalcPercent = Result
End Function
</pre>
|
__________________
"The face of a child can say it all, especially the mouth part of the face." - Jack Handey
|