OscarAlberto
Programmer
I have code writen for several Textboxes in a UserForm to obtain input from the user. Some of them produce the Type Mismatch Error when I enter a figure, and then Backspace to correct it, or on purpose enter a minus sign (not allowed), to simulate the response from the application, to an error from the user, like this one:
If ((CheckBox6 = True) And (IsEmpty(TextBox8.Value)) Or _
(Not IsNumeric(TextBox8.Value)) Or (TextBox8.Value < 0) Or (TextBox8 > 100)) Then
Msg = MsgBox(vbCrLf & vbTab & _.....
End If
In another instance - of a apparently identical code - I receive the Msg I expected when I wrote the code:
If ((TextBox2.Value <= 0) Or (Not IsNumeric(TextBox2.Value)) Or _
(TextBox2.Value > Concession)) Then
Msg = MsgBox(vbCrLf & vbTab & _
End If
What might be the cause that in some instances the error is trapped and in other simingly identical it isn't??
THANKS IN ADVANCE
Oscar Alberto
If ((CheckBox6 = True) And (IsEmpty(TextBox8.Value)) Or _
(Not IsNumeric(TextBox8.Value)) Or (TextBox8.Value < 0) Or (TextBox8 > 100)) Then
Msg = MsgBox(vbCrLf & vbTab & _.....
End If
In another instance - of a apparently identical code - I receive the Msg I expected when I wrote the code:
If ((TextBox2.Value <= 0) Or (Not IsNumeric(TextBox2.Value)) Or _
(TextBox2.Value > Concession)) Then
Msg = MsgBox(vbCrLf & vbTab & _
End If
What might be the cause that in some instances the error is trapped and in other simingly identical it isn't??
THANKS IN ADVANCE
Oscar Alberto