I have combo box variable (RepFirm) in a form (WLOT Reports Selection). I am using this variable in criteria column of query to select the recrods. If nothing is selected from the combo box every thing should be selected and if any item is selected in the combo box, it should select only records matching to the value selected.
I am using the following code in query criteria. It is working only when I select a value, if I don't select anything in the combo box, nothng is selected from the table.
IIf([Forms]![WLOT Reports Selection]![RepFirm] Is Null,"",
[Forms]![WLOT Reports Selection]![RepFirm])
Thanks a lot in advance for the help.
I am using the following code in query criteria. It is working only when I select a value, if I don't select anything in the combo box, nothng is selected from the table.
IIf([Forms]![WLOT Reports Selection]![RepFirm] Is Null,"",
[Forms]![WLOT Reports Selection]![RepFirm])
Thanks a lot in advance for the help.