Combo box

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

Hi ,

I have a form with combo box.

In case the user type in value that is not in the combo list,
I would like him to get a massage "Invalid entry".

Any ideas?

Thanks
 
First open your form in design mode. Open the properties menu and goto the
data page. Set the 'Limit to List' property to Yes.

Then goto the Event page and select the 'On Not in List' and click on the
.... (right hand) choose to code builder. The VBE window will open. Enter
the following

msgbox "Invalid entry"

Save your changes and try it out.

you should also note that by simply setting the 'Limit to List' property to
Yes, access will not allow the user to enter invalid entries and will display
it's default message. you should check it out, it may suffice your needs
without requiring you to create an event and do any programming!
 

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

Back
Top