Hello, I'm currently creating an application in VB.Net. I have used the IsNumeric function for registering the name but the function only work if I enter only Numeric. If I enter Char + Numeric it doesn't provide any error message. For example if I key in James007, the data are still added into the DB.Hope someone could rectify the problem for me. Thank you.
If (IsNumeric(txtName.Text)) Then
MsgBox("Numeric Characters are not allowed in Name!", vbCritical + vbOKOnly, "Invalid")
txtName.Text = ""
txtName.Focus()
End If