DeanWilliams
Programmer
Hi,
This seems so easy but I can't figure it out.
I have a subform that needs to have all its controls disabled if the underlying record is read-only. I have a Yes/No flag field that indicates this. The main form has a combobox that changes the record displayed in the non-continuous subform.
The problem is this: when the record in the subform changes from an editable record to a read-only one (via combobox), I cannot disable all the controls because at least one of them will have the focus.
The only way I have managed to remove the focus from every control, is to set the sourceobject for the subform control to nothing, then relaod the subform and disable all controls.
This is very messy though and takes too long to update.
Any help with this would be appreciated.
Dean
This seems so easy but I can't figure it out.
I have a subform that needs to have all its controls disabled if the underlying record is read-only. I have a Yes/No flag field that indicates this. The main form has a combobox that changes the record displayed in the non-continuous subform.
The problem is this: when the record in the subform changes from an editable record to a read-only one (via combobox), I cannot disable all the controls because at least one of them will have the focus.
The only way I have managed to remove the focus from every control, is to set the sourceobject for the subform control to nothing, then relaod the subform and disable all controls.
This is very messy though and takes too long to update.
Any help with this would be appreciated.
Dean