Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Make tab page visible/invisible...

Posted on 2008-11-12
Medium Priority
Last Modified: 2013-11-28
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.
Question by:Mike Eghtebas
  • 2
LVL 75
ID: 22944371
How about:

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

LVL 44

Accepted Solution

GRayL earned 2000 total points
ID: 22944422
It is the Page, not the TabControl you want to make inivisible

Me!Page1!visible = False


Me!Page1!visible = True

Pagen is the default name for the page name.  Replace Page1 with your actual value.
LVL 34

Author Comment

by:Mike Eghtebas
ID: 22944496

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

I will try it again.


Yes, it is the page not the tab control.


LVL 34

Author Closing Comment

by:Mike Eghtebas
ID: 31516143
Thank you.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have had my own IT business for a very long time. I started mostly with hardware and after about a year started to notice a common theme. I had shelves with software boxes -- Peachtree, Quicken, Sage, Ouickbooks -- and yet most of my clients were…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question