>>>>>>No ideas from anyone?
>>>>>
>>>>>Try
this.PC_Combo1.RowSource = 'this.parent.arrProfitCenters'
>>>>
>>>>Thanks, I thought this should refer to the class. It worked. Almost - as value was not selected.
>>>
>>>I don't understand, did my suggestion work or not? As I understand it, 'this.arrProfitCenters' is passed as a string to the combo, so "this" will be treated as the combo itself by the combo, and not this.parent which will actually contain the array.
>>
>>Your suggestion worked, but all the combos came with no values selected. What should I do so it will select what it needs to select (values should be populated)?
>
>I'm sorry, I have never used arrays as rowsource for a combo before, so I really can't help you.
I figured this problem already - adding this.combo.value = this.combo.value fixes the problem.
Now, few more problems:
1. I tried originally using \[ according to help, but it resulted in [ become part of description rather than preventing a selection with keyboard
2. Is there a way to show value in a different color for selected item if this item is disabled? When I drop down the combo, I see the disabled items in a different color, but when this is the value, it's shown in normal color.
Thanks in advance.
If it's not broken, fix it until it is.
My Blog