S
schneider
I have a combo box that lists products from tblProducts. If the user types
in an item not in the list, the cboProduct.Not in list event is launched,
with the prompt asking the user if they want to add the item.
If yes, I run an insert query to add the item to the database, then do a
cbo.Requery. At that point, I can see the new item in the cbo box list.
However, I still get an error saying
"The text you entered isn't an item in the list."
But it IS in the list, I have added it, and I have requeried the combo box.
Why do I keep getting this error and what do I do to get rid of it. I have
searched the newsgroups and all the answers say to requery the combo box,
which I've already done. Thanks for any help you can give me.
in an item not in the list, the cboProduct.Not in list event is launched,
with the prompt asking the user if they want to add the item.
If yes, I run an insert query to add the item to the database, then do a
cbo.Requery. At that point, I can see the new item in the cbo box list.
However, I still get an error saying
"The text you entered isn't an item in the list."
But it IS in the list, I have added it, and I have requeried the combo box.
Why do I keep getting this error and what do I do to get rid of it. I have
searched the newsgroups and all the answers say to requery the combo box,
which I've already done. Thanks for any help you can give me.