G
Guest
Thanks for taking the time to read my question.
I have a form that I want to filter. I want an option box to control the
filter.
When the form opens I would like to build the option box and have as many
options as there are unique records to filter on.
Eg: If the data had Oranges and Apples, I'd like my form to open, with an
option box that has two choices, Oranges and Apples. Default could be
Oranges, but I could click on the Apples option, and then the form is
filtered for Apples. Now I close the form, add Grapes to the data, and open
the form again. I'd lke the form to have Oranges, Apples and Grapes as my
options now.
I can use a recordset to return the unique values, but how do I make an
option box with code everytime the form opens?
Thanks,
Brad
I have a form that I want to filter. I want an option box to control the
filter.
When the form opens I would like to build the option box and have as many
options as there are unique records to filter on.
Eg: If the data had Oranges and Apples, I'd like my form to open, with an
option box that has two choices, Oranges and Apples. Default could be
Oranges, but I could click on the Apples option, and then the form is
filtered for Apples. Now I close the form, add Grapes to the data, and open
the form again. I'd lke the form to have Oranges, Apples and Grapes as my
options now.
I can use a recordset to return the unique values, but how do I make an
option box with code everytime the form opens?
Thanks,
Brad