Originally Posted by
Leith Ross
Hello panthers7171,
What are you trying to do with ComboBox? What type is it a Forms or Control Toolbox control?
These are from the Control Toolbox.
When combobox set to _AfterUpdate:
The combobox is populated by another Sub prior to it gaining focus. Sometimes the combobox will have no items in it...sometimes it will have some items in it. Regardless...I can either enter a new value using any keyboard entry...or I can select a pre-populated item. Either way...upon focus leaving the combobox...it calls the Sub listed in my first post which then updates a text box depending on what I entered/choose in the combobox. This all works fine.
When combobox set to _Change:
Same as above in some respects. I can definitely choose an Item in the combobox that is pre-populated. I can attempt to enter a manual value...but only if I start the entry with certain keys. To top it off...it seems that the keys that work/dont work change sometimes. When things don't work I get an error in the following line of the Sub that is called.
Here is the code again:
The error it gives me points to the "Else" statement.
Bookmarks