P
Pat Coleman
I have a form with two Cbo boxes that have a list of items and has the
'(All)' choice in each Cbo Box.
I have a query with the criteria set as the result for each Choice for each
Cbo Box. ie [Forms]![Form]![Cbo1]
The query works fine when I pick an actual value from either of the Cbo
Boxes.
But if any of the Values I choose is "(ALL)" nothing is returned in my
query.
I had it working fine also when I had only one of the Cbo's with the "(ALL)"
value but once I added the second, it seems the query was not able to handle
it.
the Query Syntax is
Select ....
WHERE (((VENDOR.NAME)=[Forms]![VendorPriceForm]![CboVendorName]) AND
((CUSTOMFIELDVIEW.INFO)=[Forms]![VendorPriceForm]![CboPartCategory])) OR
((([Forms]![VendorPriceForm]![CboVendorName])="(ALL)") AND
(([Forms]![VendorPriceForm]![CboPartCategory])="(ALL)"));
'(All)' choice in each Cbo Box.
I have a query with the criteria set as the result for each Choice for each
Cbo Box. ie [Forms]![Form]![Cbo1]
The query works fine when I pick an actual value from either of the Cbo
Boxes.
But if any of the Values I choose is "(ALL)" nothing is returned in my
query.
I had it working fine also when I had only one of the Cbo's with the "(ALL)"
value but once I added the second, it seems the query was not able to handle
it.
the Query Syntax is
Select ....
WHERE (((VENDOR.NAME)=[Forms]![VendorPriceForm]![CboVendorName]) AND
((CUSTOMFIELDVIEW.INFO)=[Forms]![VendorPriceForm]![CboPartCategory])) OR
((([Forms]![VendorPriceForm]![CboVendorName])="(ALL)") AND
(([Forms]![VendorPriceForm]![CboPartCategory])="(ALL)"));