I have a query that I want to use an IIF statement return either specific data or all records depending on a text box value on a form.
Basically the statemet reads as such:
=IIf([Forms]![frm Reports by Type]![TaskType]="All",Null,[Forms]![frm Reports by Type]![TaskType])
It works fine as with a certain Task Type selected, but left as "ALL" it returns nothing. I've tried "" and 0 before I did the Null, but ended up the same result. Thanks!
Basically the statemet reads as such:
=IIf([Forms]![frm Reports by Type]![TaskType]="All",Null,[Forms]![frm Reports by Type]![TaskType])
It works fine as with a certain Task Type selected, but left as "ALL" it returns nothing. I've tried "" and 0 before I did the Null, but ended up the same result. Thanks!