Syntax for enabling and disabling controls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form containing a tab control. The tab control contains many
subforms. I need to disable all controls when the form is opened to prevent
accidental edits. I have added an EDIT button to the main form that the user
will click to enable edits on all controls. I have successfully enabled and
disabled controls on the main form.

I'm having trouble with the syntax for enabling and disabling controls like
subforms in the tab control from the main form. Can someone give me some
guidance.

Thanks. bob
 
SubForm Controls are just like any other control in this respect. Just
reference as Me.SubFormControlName.Enabled = True/False
The TabControl does not affect the reference in any way.
 
Back
Top