Link to home
Start Free TrialLog in
Avatar of military donut
military donutFlag for United States of America

asked on

Access Form: disable Tab Control, but leave one control enabled

hello,

Is there a way to leave the tab control disabled, but to enable just one control (button)?

        Me.TabCtl183.Pages(0).Enabled = False
        Me.TabCtl183.Pages(0).Button.Enabled = True

?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of military donut

ASKER

Ok, so if I disable the form within the tabcontrol and leave the button outside the form,  I can disable the form itself.

Is there a way to refer to the control within the tab?

me.form.enabled=false
Me.TabCtl183.Pages(0).button.enable= true

?
OK nevermind, I got it.  

You can refer to the control directly.

me.button.enabled=true  

you don't have to refer to the tab control first.  

thanks!