Hi.
I am trying to run a query based off of some information taken from a form. As part of my criteria in the query, I have:
IIf([Forms]![reports_menu]![Option5].[value]=True,"",IIf([Forms]![reports_menu]![Option8].[value]=True,([projects].[project_actual_end]) Is Not Null,IIf([Forms]![reports_menu]![Option10].[value]=True,([projects].[project_actual_end]) Is Null,""
))
Basically, on my form I have 3 radio buttons. If Option5 is checked, meaning I want to show everything (i.e. no criteria), if option8 is checked, I want to show everything where there is data in the field, and option10 I want to show only records where the field is empty.
Every time I run the query it returns nothing. I get no errors and when I remove the criteria above I get results as expected.
Thanks!
I am trying to run a query based off of some information taken from a form. As part of my criteria in the query, I have:
IIf([Forms]![reports_menu]![Option5].[value]=True,"",IIf([Forms]![reports_menu]![Option8].[value]=True,([projects].[project_actual_end]) Is Not Null,IIf([Forms]![reports_menu]![Option10].[value]=True,([projects].[project_actual_end]) Is Null,""
Basically, on my form I have 3 radio buttons. If Option5 is checked, meaning I want to show everything (i.e. no criteria), if option8 is checked, I want to show everything where there is data in the field, and option10 I want to show only records where the field is empty.
Every time I run the query it returns nothing. I get no errors and when I remove the criteria above I get results as expected.
Thanks!