Hi,
I have a form with 2 textboxes and a command button.
There are some codes written on the LostFocus event of
textbox1. The codes are as follow :
Private Sub textbox1_LostFocus()
If Not IsNumeric(Trim(textbox1.Text) Then
MsgBox "Please enter a numeric value !", vbOKOnly +
vbCritical, "ERROR"
End If
End Sub
To test on the code, I key in some characters in textbox1 & click
the command button. The message as shown above was displayed. But the codes of the command button was not executed. Does anyone know where has gone wrong ? Thanks !
Dolly
