The code should be similar to
Me.NameOfSubformControl.Form.AllowEdits = True
where the NameOfSubformControl is a control on the main form. This control
holds the subform. It is not the name of the subform itself. To get the name
of this control, open the main form in design mode, open the Properties
sheet, and click on the subform ONE time. The Properties sheet should show
the name of the subform control. If you click more than once, you'll be in
the subform and the Properties sheet will show the name of the subform, not
the control holding it.
--
Wayne Morgan
Microsoft Access MVP
message I don´t know how to make my form that has a subform, to
block the subform unless I press a boton to disable the
block so I can change the data (not create a new registry,
just change it)