Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

Make tab page visible/invisible...

Dim bolVisibility as Boolean

bolVisibility = Me!tabControlName.TabIndex(0).Visible

Me!tabControlName.TabIndex(0).Visible = Not(bolVisibility)

In an event, I want to switch a tab page from visible to invisible and vs.

The above code dosen't work. What is the correct code?

Thank you.
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

How about:

IF Me!tabControlName.TabIndex(0).Visible = True
    Me!tabControlName.TabIndex(0).Visible = False
Else
Me!tabControlName.TabIndex(0).Visible = True

Endif
ASKER CERTIFIED SOLUTION
Avatar of GRayL
GRayL
Flag of Canada 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 Mike Eghtebas

ASKER

MX,

I tired the exact same code. It didn't work.

I will try it again.

GRayL,

Yes, it is the page not the tab control.

brb,

Mike
Thank you.