I created the following query:
SELECT personelTbl.name, personelTbl.phone
FROM personelTbl
Where ((personelTbl.name) = (Iif ([Forms]![personelReportFrm]![nameCombo] = "All", " ", [Forms]![personelReportFrm]![nameCombo])))
If a single name is selected in nameCombo, the query works.
If "All" is selected, the query returns nothing.
Can you help me?
Thanks,
John
SELECT personelTbl.name, personelTbl.phone
FROM personelTbl
Where ((personelTbl.name) = (Iif ([Forms]![personelReportFrm]![nameCombo] = "All", " ", [Forms]![personelReportFrm]![nameCombo])))
If a single name is selected in nameCombo, the query works.
If "All" is selected, the query returns nothing.
Can you help me?
Thanks,
John