Hi
I have a grid with 2 comboboxes in it.
Combo2 has its RowSource rebuilt depending on the value entered in Combo1.
If the user enters a value in Combo1 the RowSource of Combo2 is a subset of all possible values that relate to the value entered. There must be a value selected in Combo2 so the Style property is set to 2 (Dropdown List).
If the user leaves Combo1 with a blank value then the RowSource of Combo2 is the full set of values. It must also be possible in this case for the value in Combo2 to be blank so the style is set to 0 (Dropdown combo).
I have everything working but one thing. When I programmatically change the Style property for Combo2 to 0 (Dropdown combo) I lose the vertical flashing line cursor from the text area of the combo. Everything else is OK, I can enter the data and everything, I just can't figure out how to get that cursor back!
Any help greatly appreciated.
John.
I have a grid with 2 comboboxes in it.
Combo2 has its RowSource rebuilt depending on the value entered in Combo1.
If the user enters a value in Combo1 the RowSource of Combo2 is a subset of all possible values that relate to the value entered. There must be a value selected in Combo2 so the Style property is set to 2 (Dropdown List).
If the user leaves Combo1 with a blank value then the RowSource of Combo2 is the full set of values. It must also be possible in this case for the value in Combo2 to be blank so the style is set to 0 (Dropdown combo).
I have everything working but one thing. When I programmatically change the Style property for Combo2 to 0 (Dropdown combo) I lose the vertical flashing line cursor from the text area of the combo. Everything else is OK, I can enter the data and everything, I just can't figure out how to get that cursor back!
Any help greatly appreciated.
John.