Unlocking Subform

Scott Oh

Registered User.
Local time
Yesterday, 23:19
Joined
Feb 22, 2011
Messages
16
I would like to unlock my subform via my VBA code but I am getting an error message: Application Defined or Object Defined Error.

My code: Forms!frmMain.Form.sbfrmCVOption3.Form.Locked = False

I would appreciate any suggestions on how to unlock my subform. Thank you.
 
Locked is not a property of a form.
Usually they are controlled with AllowEdits, AllowDeletions, AllowAdditions properties.

Othwise use the Locked property the subformcontrol. (Leave out the "Form" property from the expression).

However these properties are usaully allow full editability by default. Why are they locked?
 

Users who are viewing this thread

Back
Top Bottom