Hey All Dears.
i am wondering for several hours to reading threads and searching about this problem but i can't fix it till yet.
I have a form1 containing two combo boxes. cboCategory and cboProduct.
both combo boxes are unbound.
cboCategory RowSource property is as under:
SELECT Categories.CategoryID, Categories.CategoryName FROM Categories;
and after update event of cboCategory requery the second cboProduct.
while cboProduct RowSource Property is as under:
SELECT Products.ProductID, Products.CategoryID, Products.ProductName
FROM Products
WHERE (((Products.CategoryID)=[Forms]![Form1]![Combo0]))
ORDER BY Products.ProductName;
both work correct. now i want to add word "All" in first cboCategory and when i select "All" beside any Category name then it populate the second combo box cboProduct with All Records.
can it is possible.
i try to use a union query to add "All" in first combo box and it works good. but when i select "All" from first combo box it not update the second cbobox and not show all records which are not limit by categoryID.
any ideas, suggestions about this problem......