Hi all!
I have a combo box that lists all the customers that my company deals with. I need to be able to add a new customer to this list when it does not already exist. Simple enough… Now the catch. I have this new customer sent through a function that checks for certain words and changes them to their appropriate abbreviations (such as abbreviating “Company” to “Co.’, and “Department” to “Dept.”) to keep things standard. When i don’t call the abbreviation function, I get the notinlist event to work and add the new record. The problem comes in when i programmatically change the text of the combo box to the new “abbreviated” format. What happens is that access sees that as another change and tries to call the notinlist event again.. sometimes in a loop.
Is there anything that I can do to only check the notinlist event after the abbreviations have been calculated? Or at least ignore everything until it has been changed (like setting a variable before the change, then setting it back afterward).
Thanks in advance