I need to prevent users from entering incorrect values.
Everything works except SetFocus.
Any suggestions?
Everything works except SetFocus.
Any suggestions?
Rich (BB code):
Private Sub TextBox2_AfterUpdate()
CheckBox3.Value = True
If (Me.TextBox2.Value) <= (Me.TextBox1.Value) Then
MsgBox "Value Cannot Be Less Than 1st Flight", vbCritical
TextBox2.Value = ""
TextBox2.SetFocus
Exit Sub
Else
Label3 = TextBox2.Value + 1 & " To:"
End If
End Sub