C
Cam
Hello,
I have a form with one selection criteria and also one with two selections
criteria to filter the results. The one selection criteria worked well, but
somehow the two criteria selection is not filtering. Here is a sample code of
one selection.
=IIf([Forms]![frm_FilterDialog]![SelectProdCode] Is Null,"","[ProductCode] =
Forms![frm_FilterDialog]![SelectProdCode]")
Question is can I put an AND function to this code to make it filter two
selections? I tried this, but didn't work. Any sugguestion.
=(IIf([Forms]![frm_FilterDialog]![SelectProdCode] Is Null,"","[ProductCode]
= Forms![frm_FilterDialog]![SelectProdCode]")) AND
(=IIf([Forms]![frm_FilterDialog]![SelectWorkCentre] Is Null,"","[WC] =
Forms![frm_FilterDialog]![SelectWorkCentre]"))
I have a form with one selection criteria and also one with two selections
criteria to filter the results. The one selection criteria worked well, but
somehow the two criteria selection is not filtering. Here is a sample code of
one selection.
=IIf([Forms]![frm_FilterDialog]![SelectProdCode] Is Null,"","[ProductCode] =
Forms![frm_FilterDialog]![SelectProdCode]")
Question is can I put an AND function to this code to make it filter two
selections? I tried this, but didn't work. Any sugguestion.
=(IIf([Forms]![frm_FilterDialog]![SelectProdCode] Is Null,"","[ProductCode]
= Forms![frm_FilterDialog]![SelectProdCode]")) AND
(=IIf([Forms]![frm_FilterDialog]![SelectWorkCentre] Is Null,"","[WC] =
Forms![frm_FilterDialog]![SelectWorkCentre]"))