Overflow Error
put a break on the line and check the values of the variables.
"Bishop" wrote in message
...
I have the following code:
Dim varSum As Integer, varCount As Integer
Dim ScoringAve As Double
Dim i As Integer
For i = 1 To 18
If Me.Controls(ScoreBox(i)).Text < "" Then
varSum = varSum + Me.Controls(ScoreBox(i)).Text
varCount = varCount + 1
End If
Next
ScoringAve = (varSum / varCount)
Why am I getting an Overflow error for ScoringAve?
|