don't want combo box to be empty

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.
 
R

roger

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
 
K

KARL DEWEY

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.
 

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