Syntax for enabling and disabling controls

B

Bob 4

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
 
R

ruralguy via AccessMonster.com

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.
 

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