Subforms

  • Thread starter Thread starter John Bruen
  • Start date Start date
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.
 
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.
 
Back
Top