F
Fuzzhead
If I have a textbox with a number in it and based on that number I want a
check box check. My check boxes are as follows:
Check1 if the number <= 19
Check2 if the number is 20 to 29
Check3 if the number is 30 to 39
Check4 if the number > 40
How do I do Check2 and 3? This is what I have but it does not work.
Dim j As Integer
j = TextBox110.Value
If j <= 19 Then
ActiveDocument.FormFields("Check1").CheckBox.Value = True
ElseIf j >= 20 <= 29 Then
ActiveDocument.FormFields("Check2").CheckBox.Value = True
ElseIf j >= 30 <= 39 Then
ActiveDocument.FormFields("Check3").CheckBox.Value = True
ElseIf j > 40 Then
ActiveDocument.FormFields("Check4").CheckBox.Value = True
End If
check box check. My check boxes are as follows:
Check1 if the number <= 19
Check2 if the number is 20 to 29
Check3 if the number is 30 to 39
Check4 if the number > 40
How do I do Check2 and 3? This is what I have but it does not work.
Dim j As Integer
j = TextBox110.Value
If j <= 19 Then
ActiveDocument.FormFields("Check1").CheckBox.Value = True
ElseIf j >= 20 <= 29 Then
ActiveDocument.FormFields("Check2").CheckBox.Value = True
ElseIf j >= 30 <= 39 Then
ActiveDocument.FormFields("Check3").CheckBox.Value = True
ElseIf j > 40 Then
ActiveDocument.FormFields("Check4").CheckBox.Value = True
End If