I have a form with several Tabs. On the last tab (page4) I want a routine that will give an error message if a Text Box on the first tab (page1) is null and set the focus on that text box. This is what I have so far, but it's not working:
Private Sub txtClosed_GotFocus()
If txtDOB.Text Is Null Then MsgBox("Need date of birth"
As VbMsgBoxResult
End Sub
Can anyone help?
Private Sub txtClosed_GotFocus()
If txtDOB.Text Is Null Then MsgBox("Need date of birth"
End Sub
Can anyone help?