>>>Alex,
>>>Thank you for the suggestion. I thought about When event but I would like to gray out the combo box when user clicks in it (to clearly indicate that editing is not allowed). Got Focus and Lost Focus work for all other controls but combo. I don't think you can gray out the control in When event.
>>
>>Hi Dmitry,
>>
>>What is the condition, that trigers whether your combo should be enabled or disabled? Could you set it from the form's level instead?
>
>Nadya,
>I have a form property that is set to negative 1 (-1) to indicate that data should not be changed. I guess I could change the design, as you suggest, but it works with all controls but the combo. So far, I basically decided for follow yours and Alex suggestion to use When event.
>Thank you.
If it's a form property and all controls should be disabled why not use SetAll method?
If it's not broken, fix it until it is.
My Blog