Hello,
I have used various guides on here in the past to create an "(All)" option in combo boxes that I use to filter results displayed on continuous forms for many years.
Usually that's fine, but today, I am trying to do the same thing, but on a slightly more complex piece of SQL... and it's hurting my head.
I have this, which is working very nicely to filter my form:
However, I have another SQL query which nicely displays a shorter, more useful list that I would like to use to filter by:
How would I go about putting an "(All)" option, as works in the top SQL, into the bottom SQL? I have scratched my head, and tried various options, but all I can generate is errors!
Please help?!
I have used various guides on here in the past to create an "(All)" option in combo boxes that I use to filter results displayed on continuous forms for many years.
Usually that's fine, but today, I am trying to do the same thing, but on a slightly more complex piece of SQL... and it's hurting my head.
I have this, which is working very nicely to filter my form:
SQL:
SELECT tblClothingBrand.ClothingBrandID, tblClothingBrand.BrandName
FROM tblClothingBrand
UNION Select "*" as AllChoice,"(All)" as Bogus
FROM tblClothingBrand
ORDER BY tblClothingBrand.BrandName;
However, I have another SQL query which nicely displays a shorter, more useful list that I would like to use to filter by:
SQL:
SELECT tblClothingBrand.BrandName
FROM tblClothingItem
INNER JOIN tblClothingBrand
ON tblClothingItem.BrandID = tblClothingBrand.ClothingBrandID
WHERE (((tblClothingItem.CollectionID)=[Forms]![frmClothingCollection]![ClothingCollectionID]))
GROUP BY tblClothingBrand.BrandName
ORDER BY tblClothingBrand.BrandName;
How would I go about putting an "(All)" option, as works in the top SQL, into the bottom SQL? I have scratched my head, and tried various options, but all I can generate is errors!
Please help?!