Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble Validating Data Error 424 on Null Values

Status
Not open for further replies.

bblekfeld

Programmer
Mar 9, 2004
49
US
I am trying to cross-validate data between different fields

it works unless I am asking about Null Values
Below is an example that would get me a "Runtime Error 424 Object Required". Sorry if this is something totally simple. Any help is appreciated



Private Sub AutoEmailChckbox_LostFocus()
If AutoEmailChckbox = -1 AND EmailAddress Is Null Then
MsgBox "Email Address Required for Auto Receipt"
End If
End Sub
 
try changing the email part of the code to.

If AutoEmailChckbox = -1 AND isnull(EmailAddress)Then
MsgBox "Email Address Required for Auto Receipt"
End If
End Sub

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top