items in a combobox

  • Thread starter combobox via AccessMonster.com
  • Start date
C

combobox via AccessMonster.com

how can i disable items listed in a combobox?

i have this combox with items yellow, red and blue how can i disable the
items red and blue in a button click event
 
M

Marshall Barton

combobox said:
how can i disable items listed in a combobox?

i have this combox with items yellow, red and blue how can i disable the
items red and blue in a button click event


You can't disable them. The usuak thing to do is to filter
those values out of the combo box's row source so they don't
appear in the list.

If you really have to display the entire list, then you will
need to check for the values you want "disabled" In the
combo box's BeforeUpdate event:

If Me.combo = "red" Or Me.combo = "blue" then
Me.combo.Undo
Cancel = True
End If
 

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