Editing Subforms

H

Haigy

i have a main form with subforms on it, i have set the main form AllowEdits
to No and this stops me editing the subform

i have a button that lets me set the main form back to allowedits to True,
but the subforms are still not editable, and i need these to be editable as
well

any advice on how to do this

thanks in advance
 
A

Allen Browne

When you set the AllowEdits property of the main form, you can set the
property of the subform too:

Me.AllowEdits = True
Me.[NameOfSubformControlHere].Form.AllowEdits = True
 
J

John S

Quick thought: Have you referenced you subform property directly from your
form: syntax:

me![subformName].form.Allowedits = true

Might solve the problem.

John S
Aylmer, PQ
 
Top