One combo boxe influece another

Knight of Nee

Board Regular
Joined
Aug 4, 2003
Messages
124
Hi

How can I make it so that a selection in one combo box on my form changes what’s displayed in the other? For example I have many suppliers and many products stores in different tables with pricelist table linking them.

The first combo I want the user to select the supplier they want to use. This should then limit the second box to ONLY the products that this supplier supplies. Can someone explain how this is done?

Thanks
Craig
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Open the form containing the combos you mentioned. View the properties for the combo that should be filtered of the other combo. Under Data|Rowsource, right click in this area and bring up the query builder. As the first column of the query, add the field you want to see in the combo. Then add the field by which you want the combo filtered. Right click on the criteria for this field, and use the expression builder to browse to the combo on which this combo should be filtered. Close the query builder and tell it okay.

Finally, add a 'afterupdate' event to the first combo, and have it requery the combo that needs to be filtered.

That should do it, hope that helps,
 
Upvote 0
Hi Corticus

I have the same problem but cant follow your steps to get a solution. I cant bring up the query builder, can you help?

Kind regards
Michael Mullineux
 
Upvote 0

Forum statistics

Threads
1,221,842
Messages
6,162,333
Members
451,760
Latest member
samue Thon Ajaladin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top