I have a form with a combo box called cmboESC_LEVEL. The function is for the user to narrow the query to Escalation Level 1, 2, or 3.
In my data, Escalation Level can only determined by 'not null' cells. The two fields are Triaged_To_Level_2 (if "Yes", the record has been escalated to at least Level 2), and Triaged_To_Level_3 (if "Yes", the record has been escalated to at least Level 3).
I am trying to get my query to put criteria on Triaged_To_Level_2 and Triaged_To_Level_3. For Triaged_To_Level_2, I am attempting to use the following code, but it is not working:
Code:
Switch([Forms]![frmSEARCH]![cmboESC_LEVEL]="Level 1",Null,[Forms]![frmSEARCH]![cmboESC_LEVEL]<>"Level 1","Yes")
I've tried using nested IIf criteria as well, but the problem seems to be that I cannot return the value of "Null" or "Is Null" as criteria for the field.
The only other thing I could try would be to change the table fields to Yes/No, rather than the current condition of "Yes"/null. Would that work?