[AccessD] Locked form w/editable subform?

Stuart McLachlan stuart at lexacorp.com.pg
Tue Nov 2 16:09:35 CST 2004


On 2 Nov 2004 at 14:59, Christopher Hawkins wrote:

> Suppose you have frmMain and frmSub.
> 
> frmMain is (duh) the main form and frmSub is the SourceObject of
> subform control sFrm on frmMain.
> 
> How can I set frmMain.AllowEdits to False and still have frmSub
> behave as though it's .AllowEdit property is set to True?  Right now,
> as soon as I change the setting for frmMain, it takes frmSub along
> with it.
> 

You could set all the fields on frmMain to Enabled and Locked
or set the AllowEdits explicitly in code on_load.



-- 
Stuart





More information about the AccessD mailing list