I have an unbound combo box with the ListIndex = 0 using code on the On Got Focus event. The combo box is also hidden unless certain criterion is entered.
Once there is data to populate the combo box. The Row Source is set using code and if the ListCount 0 then the combo box is now visible.
This is what is giving me trouble.
I get an error when the combo box is unhidden and has focus for the first time. The error I get is Run Time Error ‘7777’ You’ve use the ListIndex property incorrectly.
If I set the combo box to visible when the form first opens the error does not happen when the combo box gets focus. Also when the error happens I can hit End instead of Debug and the next time I go to the combo box, it works just fine until it is hidden and unhidden again.
Any ideas on what is happening.
Thank you,
Winston