The code should be:
Code:
If TextBox1.Text >= 0 and TextBox1.Text <= 14 Then
Textbox2.Text = 1
Else If Textbox1.Text >= 15 and TextBox1.Text <= 29 Then
Textbox2.Text = 2
Else
Textbox2.Text = 3
End If
Otherwise you will miss the values 14, 15 and 29
Best regards.