ISNULL not working for some reason


G

Gator

Why is the LostFocus event not working. Nothing happens, I am able to click
in any other control I want. I tried the Text21_Exit event and it did not
work either.

Private Sub Form_Load()
Me.Text21.SetFocus
End Sub

Private Sub Text21_LostFocus()
If IsNull(Text21) Then
MsgBox "Enter a Date on Top", vbOKOnly, Date
Cancel = True
End If
End Sub
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top