Disable combo box

  • Thread starter Thread starter Klynn
  • Start date Start date
K

Klynn

I have a combo box that displays a list of car models. After updating
this combo box, a 2nd combo box displays the available color (black,
red).
Is there a way to disable the 2nd combo box if no match is found?

Thank you, Klynn
 
Klynn said:
I have a combo box that displays a list of car models. After updating
this combo box, a 2nd combo box displays the available color (black,
red).
Is there a way to disable the 2nd combo box if no match is found?


After the cboColor.Requery
try using:
cboColor.Enabled = (cboColor.Listcount > 0)
 

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

Back
Top