don't want combo box to be empty

  • Thread starter Thread starter alekm
  • Start date Start date
A

alekm

Hi,
I know how to limit a user to pick up only items from combo box but how can
I stop user from presing delete and living a combo box empty even if default
item was set, ie. I want that one item is selected in combo box for sure.
 
In the combo's after update event, check to make sure it isn't empty.
like:
if me.cboMyComboBox = "" then CancelEvent
or something like that.

HTH
roger
 
If the combo is bound to a number field and you do not use zero then set
validation to <>0 and enter the appropriate message in the Validation
Text.
If it is a text field the use <>"zzzzzzzzzzzzz" as validation.
 
Back
Top