G
Guest
I have this form with 4 combo boxes across the top, a button, and a list box
on the bottom:
cboColor
cboShape
cboSize
cboWeight
btnShowAll
lstResults
I want the list box to show all of the products, color, shape, size, weight.
Then when someone selects a color out of cboColor it filters that list box
to only show products with that color, then if they select a shape, it
filters that list box again to show only the products with the color and size
we selected. Now to make this harder if the end user was to de-select the
color, it would filter only by size. Get what I'm saying? The end user
should be able to filter any way they want according to those drop downs.
The btnShowAll button resets the list box and all of the combo boxes so that
all the information is shown, not filtered. I want the form to work like
AutoFilter works in excel, if that gives you an idea. 4 combo boxes to
filter the content below, all in real time, and a button to reset it back to
normal. Sounds easy butt I cannot figure it out, and every where I look it
all doesn't make much sense to me. All of the information is being pulled
from one table, and the options for the combo boxes are created with a query:
SELECT DISTINCT tblItem.weight
FROM tblItem
ORDER BY tblItem.weight;
This is a list of my tables, forms, and queries:
tblItem
frmProductQryTool
qryColor
qryShape
qrySize
qryWeight
Thanks for all of your help!
-Ryan
on the bottom:
cboColor
cboShape
cboSize
cboWeight
btnShowAll
lstResults
I want the list box to show all of the products, color, shape, size, weight.
Then when someone selects a color out of cboColor it filters that list box
to only show products with that color, then if they select a shape, it
filters that list box again to show only the products with the color and size
we selected. Now to make this harder if the end user was to de-select the
color, it would filter only by size. Get what I'm saying? The end user
should be able to filter any way they want according to those drop downs.
The btnShowAll button resets the list box and all of the combo boxes so that
all the information is shown, not filtered. I want the form to work like
AutoFilter works in excel, if that gives you an idea. 4 combo boxes to
filter the content below, all in real time, and a button to reset it back to
normal. Sounds easy butt I cannot figure it out, and every where I look it
all doesn't make much sense to me. All of the information is being pulled
from one table, and the options for the combo boxes are created with a query:
SELECT DISTINCT tblItem.weight
FROM tblItem
ORDER BY tblItem.weight;
This is a list of my tables, forms, and queries:
tblItem
frmProductQryTool
qryColor
qryShape
qrySize
qryWeight
Thanks for all of your help!
-Ryan