chuckcoleman
Registered User.
- Local time
- Today, 05:19
- Joined
- Aug 20, 2010
- Messages
- 380
I'm feeling a little brain dead right now so I could use some help. I have a query that has a text field and I want the criteria for that text field to be "Is Null". I have a Function that looks like:
Function fHasEmail() As Variant
If CurrentProject.AllForms("Client Form").IsLoaded = True Then
fHasEmail = "*"
Else
fHasEmail = "Is Null "
End If
End Function
It tests if a form is loaded and if it is, the criteria is "anything", i.e. no criteria, all values. That works. If the form is not loaded I want "Is Null" passed to the criteria line of the query so that the query selects records where the field is null.
Any help will be appreciated.
Thanks,
Chuck
Function fHasEmail() As Variant
If CurrentProject.AllForms("Client Form").IsLoaded = True Then
fHasEmail = "*"
Else
fHasEmail = "Is Null "
End If
End Function
It tests if a form is loaded and if it is, the criteria is "anything", i.e. no criteria, all values. That works. If the form is not loaded I want "Is Null" passed to the criteria line of the query so that the query selects records where the field is null.
Any help will be appreciated.
Thanks,
Chuck