Peter -
I could be wrong but . . .
I suspect the backcolor property of the combobox pertains to the entire content of the combo box and not each individual record. Try marking the first and last records it sees as deleted and see what you get. An alternative way to do what you want is to create 2 columns in the combo and populate one of them with a deleted tag. You may also want to play around with the disableditembackcolor, selecteditembackcolor and selectedbackcolor to see if you can dynamically adjust them.
- Don
>I'd kind of expected the following code to change the color of the combobox accordingly, but it does nothing of the sort.
>
>And yes, the code does get executed...
>
>
>* _ComboBox refresh method
>
>With This
> .BackColor = Iif(Deleted(Juststem(.RowSource)),Rgb(128,0,0),Rgb(255,255,255))
> .ForeColor = Iif(Deleted(Juststem(.RowSource)),Rgb(255,255,255),Rgb(0,0,0))
>Endwith
>
>
>
>Is this a known issue / bug?