Hello i have a data validation check upon lost focus for a vb textbox:
It will check if its null, if so it'll display an error message. But then it will lose focus, i want it to stay in that text box until the user enters something.
Code:
Private Sub fromText_LostFocus()
If IsNull(fromText.Text) = True Then
MsgBox StrMsg, vbExclamation
End If
End Sub
Comment