refreshing a combo box

L

Lauren B

I have a combo box on a form that contains vendor names. I then have a
second combo box that contains products offered by that particular vendor.
The first combo box dictates what appears in the second combo box via a
query.

When the user selects a vendor in the first combo box, the second one is
populated correctly. However, if the user then selects a different vendor
in the first combo box, the products from their first selection still remain
in the second one. What code do I need to use to have the second combo box
refresh as a result of any changes made in the first one.

Thank you for any assistance.

LB
 
K

Ken Snell [MVP]

If you've tied the two combo boxes together in the "normal" way, this should
occur automatically, as the first combo box's AfterUpdate event would run
code to requery the second combo box's Row Source.

So, tell us how you set up the two combo boxes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top