Subforms

J

John Bruen

How do I enable/disable and lock/unlock fields using
events for subforms? I had all fields on 1 form and had to
move fields to a subform. How do I refer to the fields on
the subforms and where do I put the code? I tried mainform!
subform!fieldname.enable = true and it did not work.
 
J

John Vinson

How do I enable/disable and lock/unlock fields using
events for subforms? I had all fields on 1 form and had to
move fields to a subform. How do I refer to the fields on
the subforms and where do I put the code? I tried mainform!
subform!fieldname.enable = true and it did not work.

Try Me!subform.Form!fieldname.enable

Here subform is the Name property *OF THE SUBFORM CONTROL* - this is
not necessarily the same as the name of the Form object within that
control although it often is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top