I am sure this will be easy but ....
I have a form, with a button that triggers a Private Sub Form_AfterUpdate()
I want to put in a bit of code that determines if an email field is blank, and therefore performs one action or another. The code (and versions of it that I have tried) is as follows, but I am getting errors such as Object Required, object not defined etc.
Code:
Private Sub Form_AfterUpdate()
If [email 1] Is Null Then
MsgBox ("No email address has been entered")
'do something here
else
'do something else
end if
What is wrong with my "If" line ???
Cheers
Stuart