H
HelenJ
I have a combo box that use to filter the records that are show on the sub
form, however I would like to be able to show all the records.
I have tried the following for the data source of the subform, but it
doesn't display any records when I leave the box blank.
SELECT Products.*
FROM Products
WHERE (((Products.Function)=IIf([Forms]![SuppliersFm]![functionCbo] Is
Null,(Products.Function) Like "*",[Forms]![SuppliersFm]![functionCbo]))
ORDER BY Products.Function, Products.RefNo;
does anyone know a way of doing this or can see a flaw in my code?
Many thanks
form, however I would like to be able to show all the records.
I have tried the following for the data source of the subform, but it
doesn't display any records when I leave the box blank.
SELECT Products.*
FROM Products
WHERE (((Products.Function)=IIf([Forms]![SuppliersFm]![functionCbo] Is
Null,(Products.Function) Like "*",[Forms]![SuppliersFm]![functionCbo]))
ORDER BY Products.Function, Products.RefNo;
does anyone know a way of doing this or can see a flaw in my code?
Many thanks