JackDomino1
New Member
- Joined
- Apr 7, 2020
- Messages
- 39
- Office Version
- 365
- Platform
- Windows
Hi I have a table of data I wish to "filter" using two comboboxes and display the matching results in a listbox.
Combobox1 should list available colours (done)
Combobox2 should list "Positive", "Zero" and "Negative"
If the user selects "red" and "positive", the listbox should display "Strawberry" and "apple" on separate rows.
I have managed to make this work, but only based on the colour selection, adding in the secondary "filter" has complicated things. Also, not sure if it is important, the rows in the table are constantly being added too.
Any pointers is greatly appreciated.
Thanks
Colour | Item | Stock |
Red | Apple | 5 |
Yellow | Peach | 13 |
Green | Pear | 1 |
Red | Cherry | 0 |
Red | Raspberry | -10 |
Yellow | Plum | 2 |
Yellow | Apricot | 0 |
Red | Strawberry | 3 |
Combobox1 should list available colours (done)
Combobox2 should list "Positive", "Zero" and "Negative"
If the user selects "red" and "positive", the listbox should display "Strawberry" and "apple" on separate rows.
I have managed to make this work, but only based on the colour selection, adding in the secondary "filter" has complicated things. Also, not sure if it is important, the rows in the table are constantly being added too.
Any pointers is greatly appreciated.
Thanks