I have a combo box for which the Record Source is an SQL Statement. What is displayed in this combo is the result of selections made in 2 other combos on the same form. All the SQL works fine. When I make my selections from the other combos, the correct (single) selection appears in the first combo.
The problem is only that I still need to click on the list arrow to show the resulting selection. There is only one item and I would like to have it display automatically in the combo.
I have been playing around with the ItemData() method but don't seem to be getting it right. Is this the right way to do it? Would it be better to do it with properties only or with code?
Or if anyone knows a better/easier way I'd love to hear it. Thanks!
The problem is only that I still need to click on the list arrow to show the resulting selection. There is only one item and I would like to have it display automatically in the combo.
I have been playing around with the ItemData() method but don't seem to be getting it right. Is this the right way to do it? Would it be better to do it with properties only or with code?
Or if anyone knows a better/easier way I'd love to hear it. Thanks!