J
JJ
Does anyone know how to correct the SQL below...
I would like to say if the text in the form control is not equal to "*All"
then give me the results from the form control. However, if the text in the
form control is equal to "*All", then give me everything.
SELECT Step5qry.[Customer Name], Step5qry.[Customer Group], Step5qry.[Sales
Empl ID]
FROM Step5qry
WHERE (((Step5qry.[Customer Group])=IIf([Forms]![MiscVistaNP_frm]![Customer
Group]<>"*All",[Forms]![MiscVistaNP_frm]![Customer Group],Like "*" or Is
Null)));
Thanks!
I would like to say if the text in the form control is not equal to "*All"
then give me the results from the form control. However, if the text in the
form control is equal to "*All", then give me everything.
SELECT Step5qry.[Customer Name], Step5qry.[Customer Group], Step5qry.[Sales
Empl ID]
FROM Step5qry
WHERE (((Step5qry.[Customer Group])=IIf([Forms]![MiscVistaNP_frm]![Customer
Group]<>"*All",[Forms]![MiscVistaNP_frm]![Customer Group],Like "*" or Is
Null)));
Thanks!