refer to subform property

JCross

Registered User.
Local time
Today, 20:16
Joined
Feb 28, 2002
Messages
116
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
 
So sorry that you are sorry to ask
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
 
thank you alex!

i'll try to stop apologizing for myself so much
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).]
 

Users who are viewing this thread

Back
Top Bottom