Clear a combobox

Y

yonina

hi,

I have a combo box that I want to clear. I tried combo.clear, but it doesn't
work.
How can I clear the combo through code?

Thanks.
 
D

Douglas J Steele

What do you mean by "clear": have nothing selected in it, or have nothing in
the dropdown section?

For the former, use Me.MyComboBox = Null

For the latter, use Me.MyComboBox.RecordSource = ""
 
Top