Ok I have 3 text boxed
Text1
Text2
Text3

In each Text box I have numbers

Text1.Text = 30
Text2.Text = 8
Text3.Text = 25

I have dimmed Solution to hold the calculation. I also have dimmed Text1, 2, & 3 but in this example Im just trying to point out my problem.

My formula is set like this
If Text2 < Text3 then
Solution = Text3 - Text2 - 1

The only time that the solution comes out correct, is when Im using double digits.

This comes out correct-
Text1.Text = 30
Text2.Text = 08
Text3.Text = 25

This doesn't-
Text1.Text = 30
Text2.Text = 8
Text3.Text = 25

Does anyone know what the problem could be? Any help is greatly appreciated.