View Full Version : refer to subform property


JCross
03-18-2002, 01:25 PM
so sorry - i searched old posts and couldn't find an answer!

i want to click an 'edit' button on a main form and have it set the AllowEdits property to True on the form AND subform. works for the form.....but i can't seem to change the subform property. using

Forms!mainform!subform.allowedit = true

thank you for your help

jennifer

Alexandre
03-18-2002, 01:36 PM
So sorry that you are sorry to ask http://www.access-programmers.co.uk/ubb/wink.gif

I like to use early binding as much as possible, because it helps detecting syntax errors when writing or compiling the code.

Try:
Forms.Item("FormName").Form.Controls("SubFormName").PropertyName
Or
Me.Controls("SubFormName").PropertyName

Alex

JCross
03-18-2002, 01:41 PM
thank you alex!

i'll try to stop apologizing for myself so much http://www.access-programmers.co.uk/ubb/smile.gif

i still can't access the allowedits property of the subform from the click event of the button on the main form, though. I tried both of your solutions and got the same response.

help!


jennifer

[This message has been edited by JCross (edited 03-19-2002).]