Error#2164 encountered while locking form. You cant disable a control while it has the focus
Posted on 2011-05-11
I want to disable all the controls on a subform when the main form loads but i receive the message that "Error#2164 encountered while locking form. You cant disable a control while it has the focus".
I have entered disable in the tag field on all the controls properties of the main form, and a standard module is used to set the enabled property of the controls to false, when the main form loads.
When i add the disable text to the tags on the subforms controls, i receive the error message above
My main subform is called frmSIMDetails and the subform is fsubSIMDetailsNotes.
Can anyone help.?