I would like to give this thread a bump to the top because I am also having this problem.
For me, I have 2 variables which are sumations and have the following code:
Code:
dWinchCatTotalShiftsWorked = cdbl(dWinchCatTotalShiftsWorked) + cdbl(dValue)
dWinchCatUtilizationTotalShiftsAvailable = cdbl(dWinchCatUtilizationTotalShiftsAvailable) + cdbl(rsDetails("ShiftsAvailable"))
When I use response.write on these variables I get 6 and 8 respectively. When I response.write the TypeName of these variables, I get the value double for both.
Now, when I divide dWinchCatTotalShiftsWorked by dWinchCatUtilizationTotalShiftsAvailable as in the following:
Code:
Response.Write(dWinchCatTotalShiftsWorked/dWinchCatUtilizationTotalShiftsAvailable)
Response.Write(6/8)
I get the Microsoft VBScript runtime (0x800A0006) Overflow error.
The second statement works just fine and returns 0.75
Now how is it that division using the variables causes an overflow error? a CDbl should easily handle a value of 0.75
Ponderous man. Really ponderous.