I have a query with a True/False field and a form with an option group with options 1=Both, 2=True, 3=False.
I tried using a nested IIf but am not sure how to code the Both option to select all records. In other words, if option 1 is clicked then select ALL records. If option 2 is clicked select TRUE records. If option 3 is clicked select FALSE records. It is the ALL that I am struggling with (like a wildcard).
Here is the criteria:
IIf([Forms]![formMyForm]![frameComplete]=3,False,IIf([Forms]![formMyForm]![frameComplete]=2,True,Like"*"))
Notice the Like"*". This is my attempt to select all records but it doesn't work. It only selects TRUE records whether option 1 or 2 is clicked (Both/True).
I tried using a nested IIf but am not sure how to code the Both option to select all records. In other words, if option 1 is clicked then select ALL records. If option 2 is clicked select TRUE records. If option 3 is clicked select FALSE records. It is the ALL that I am struggling with (like a wildcard).
Here is the criteria:
IIf([Forms]![formMyForm]![frameComplete]=3,False,IIf([Forms]![formMyForm]![frameComplete]=2,True,Like"*"))
Notice the Like"*". This is my attempt to select all records but it doesn't work. It only selects TRUE records whether option 1 or 2 is clicked (Both/True).