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.
 

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

Similar Threads

lock/unlock controls 0
problem hiding subform field 5
Locked fields 1
Multiple subforms 0
Setfocus on subform on tabbed form 3
Subform/Form Referencing 5
Press one button to execute another one 4
textbox event 2

Back
Top