Remove Warning for Combo Box

J

James Stephens

I have a combo box on a form and I use it to delete records. It will delete whichever record is selected. I have the property set on the combo box to yes for "Limit to List". Then for my code to delete records, I put in error handling to put up a message if they put a value in that is not in the list. I also put the same error handling message into the combo box property for the "On Not in List" action

It basically works, if they enter something incorrect then it displays my error message, but then after it, it also displays the default Access message leting me know I entered a value not in the list

!!!!! HOW DO I PREVENT THIS MESSAGE FROM SHOWING !!!!!!

Thanks for your help

Jim
 
P

PC Datasheet

Begin your code with:
Response = acdataErrContinue

Notice your sub is looking for a value for "Response"

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
(e-mail address removed)
www.pcdatasheet.com


James Stephens said:
I have a combo box on a form and I use it to delete records. It will delete
whichever record is selected. I have the property set on the combo box to yes
for "Limit to List". Then for my code to delete records, I put in error
handling to put up a message if they put a value in that is not in the list. I
also put the same error handling message into the combo box property for the "On
Not in List" action.
It basically works, if they enter something incorrect then it displays my
error message, but then after it, it also displays the default Access message
leting me know I entered a value not in the list.
 

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

Similar Threads

Combo box 0
OnChange combo box 2
Add a combo box 5
Search combo box 2
Address selection on combo box help 2
Combo Box On Click 8
Update Combo Box 4
Combo box to show previous value 2

Top