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)
 
Back
Top