Changing Combo Box Text to be "like new"

  • Thread starter Thread starter Amir
  • Start date Start date
A

Amir

Hi!

How can I use VB to change the text in a required, limited to list,
and "cannot have zero length strings" combo box to be empty?

I have a combo box which has a NotInList event that lets
the user add an item to the combo box's list using another form.
I want the combo box to become empty if the user didn't add an
appropriate item the box's list. I have the condition and all,
but currently I'm putting the ItemData(1) (Combo has title) value
instead. The reason is that this combo is:
1. Required.
2. Cannot have length strings.
3. Limited to list.
so I can't just put "" in there, because it produces an error message.

How can I make this combo box empty, without getting error messages?

Amir.
 
Back
Top