03-13-2012, 02:50 PM
Hm, alright. Well since I don't know exactly what's wrong.. let's rule out the option of Val returning a variable of type integer by replacing all instances of
With..
Code:
Val(txtMain.Text)
With..
Code:
CDbl(Val(txtMain.Text))