troubleshooting Question

How do I reload a combo box after NotInList Event fires?

Avatar of SowleMan
SowleManFlag for United States of America asked on
Microsoft AccessMicrosoft Development
3 Comments1 Solution241 ViewsLast Modified:
When the NotInList event fires, I use the NewData and DAO's SEEK command to see if the NewData exists in a table. If so, I want to suppress error messages from ACCESS, and I want to requery the combo box and have NEWDATA displayed in the dropdown list.  

The query which supplies  the fields in the drop down list  is based on the contents of a text box ("CustShortName"). When the SEEK is successful, I store in the text box the value which should cause the requery to be successful. I'm missing something, because the combo boxes drop down list is empty and I get the standard ACCESS error about the string not being in the list.
After SEEKing NEWDATA and putting the correct data in "CustShortName", I set Response = acDataErrAdded and exit the NotInList event.  Help, anyone?

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros