D
Dave
I have a form that has two combo boxes on it. The combo boxes apply filters to the form's underlying recordset.
The first box has a list of states and the second has a list of customers.
When the user makes a selection in the state combobox I want the record set for the customer combo box to be filtered by that selection. (As welll as the form's recordset.)
For example, if the user selects California in the state combobox, the customer combobox should be restricted to show only customers in California as being available for selection.
I believe this can be done in the VBA code module. Can anyone give me an idea on how to approach this? IOW how do I dynamically set the record source for the combobox using the onchange event of another combobox?
Thanks
The first box has a list of states and the second has a list of customers.
When the user makes a selection in the state combobox I want the record set for the customer combo box to be filtered by that selection. (As welll as the form's recordset.)
For example, if the user selects California in the state combobox, the customer combobox should be restricted to show only customers in California as being available for selection.
I believe this can be done in the VBA code module. Can anyone give me an idea on how to approach this? IOW how do I dynamically set the record source for the combobox using the onchange event of another combobox?
Thanks