I have been trying for 3 days now to figure out what is wrong with this code, Can anyone clue me in please?
Public Function CalcAverage(ByVal average As Decimal, ByVal total As Decimal) As Decimal
count = count + 1
'calculate average if count is greater than zero
If count > 0 Then
average = total / count
End If
Return average
End Function
Thank you very much for any help!


