I have several forms with many controls on them.
Controls:
PW text, Unlock button in Form Header
All other controls in Detail section.
In the past, to lock the controls of a form, In design vies I set the selected controls to data Locked = Yes. When I open the form I have one unlocked text control in the header. The user types in a password and then click a button (also in the header). The code behind the button does a me.(control).Lock = False for each control in the Detail section. When there are few controls this is easy to do.
Now I have 8 forms with up to 20 detail fields each. I want to have those controls locked when opening the form. In design view I will multiple select all the controls of concern and set their Data Locked value to yes.
When the form is opened...I want to use the same password routine and button to unlock all the controls in the detail section. Is there a way to unlock all locked controls with one VB command or do I have to do them individually?
Thanks - ahead of time.
Controls:
PW text, Unlock button in Form Header
All other controls in Detail section.
In the past, to lock the controls of a form, In design vies I set the selected controls to data Locked = Yes. When I open the form I have one unlocked text control in the header. The user types in a password and then click a button (also in the header). The code behind the button does a me.(control).Lock = False for each control in the Detail section. When there are few controls this is easy to do.
Now I have 8 forms with up to 20 detail fields each. I want to have those controls locked when opening the form. In design view I will multiple select all the controls of concern and set their Data Locked value to yes.
When the form is opened...I want to use the same password routine and button to unlock all the controls in the detail section. Is there a way to unlock all locked controls with one VB command or do I have to do them individually?
Thanks - ahead of time.