Button on Form controling SubForm

branston

Registered User.
Local time
Today, 09:03
Joined
Apr 29, 2009
Messages
372
Hi,

I have a form with a subform. When the form opens I have set every field on the subform to be locked (by using the on open comand of the subform). However, I want a button on the main form which a user can press, enter a password and make all the fields on the sub form unlocked (i.e. to allow for edditing)
Basically... How can I make a control on a form effect fields on the subform? Everything i try makes it come up with errors saying it cant find the fields, showing its still looking at the main form.

Thank you!
 
Ah, dont worry - searched for it a slightly different way in google and came up with this:

Forms.FormName.SubFormName.Form.FieldName

Works great.
 

Users who are viewing this thread

Back
Top Bottom