Hi All
I am building a form, on it will be a listbox that just contains all columns (minus ID) from the database table.
When the form opens, I want the listbox to show all records.
Above the listbox will be a bunch of comboboxs that hopefully will filter the listbox below.
What I need the listbox to do, is always show all records unless a combobox is entered, then only show records that match the value.
But there can be more than one filter, for example there is a origin city column and destination city column. Both of these will have comboboxes.
If the user selects "New York" in origin combobox, then only records that have origin as "New York" will show in the listbox. But if the user has both "New York" in origin, and "Miami" in destination, then again only records that show origin = New York AND destination = Miami will show.
There is more than two, and each one needs to be able to filter the listbox by itself as in the example below, the user can leave the origin and just filter by "Miami" in destination combobox. It also needs to filter with all the other comboboxs as well?
I hope that makes sense?
Thanks in advance.
I am building a form, on it will be a listbox that just contains all columns (minus ID) from the database table.
When the form opens, I want the listbox to show all records.
Above the listbox will be a bunch of comboboxs that hopefully will filter the listbox below.
What I need the listbox to do, is always show all records unless a combobox is entered, then only show records that match the value.
But there can be more than one filter, for example there is a origin city column and destination city column. Both of these will have comboboxes.
If the user selects "New York" in origin combobox, then only records that have origin as "New York" will show in the listbox. But if the user has both "New York" in origin, and "Miami" in destination, then again only records that show origin = New York AND destination = Miami will show.
There is more than two, and each one needs to be able to filter the listbox by itself as in the example below, the user can leave the origin and just filter by "Miami" in destination combobox. It also needs to filter with all the other comboboxs as well?
I hope that makes sense?
Thanks in advance.