I have a project that I thought was working fine. I had declared the variables as integers. In one text box, the user will type a number. The macro then checks to see if the number is higher than 3. If it is, it subtracts 3 from that number and creates a variable called “IndExtra”. Sounds simple enough. However, the macro works fine if the number is 1-9 or anything higher than 29….but won’t calculate anything from 10-29 inclusive, this is extremely puzzling.
I have declared an variable called “Individual” as an integer.
Individual = frmPTO1390.TextBox2.Text
I have even tried:
Individual = Int(frmPto1390.TextBox2.Text)
I then have a statement similar to:
If Individual > 3 Then
do this routine
End If
What am I doing wrong here??? As always, thanks for your excellent advice.