Access Unhide tabs based on checked box

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

rawnrg

Thread Starter
Joined
Nov 17, 2011
Messages
4
Hey ya'll,
I have 5 tabs of subforms in Access 2010
Only the first tab is visable.
I only want the rest of the tabs visable if associated checked boxes on first tab are checked.
For example, the check boxes on first tab are:
- Registrant is going to volunteer
- Registrant is a veteran
If those boxes are checked then the associated tab (volunteer info tab) is rendered visable.
I assume this is going to need VB code on either the tabs event, or the first form event, or the check box?
Thank you
 

OBP

Joined
Mar 8, 2005
Messages
19,896
Yes you need to add some VBA code to the "After Update" event procedures of the Check boxes.
It would be something like
if me.checkboxname = -1 then
me.tabname.visible = true
else
me.tabname.visible = false
end if
where checkboxname is the actual name of your checkbox and tabname is the name of the tab to be made visible.
The VBA editor should offer you the correct names of the controls on the Form.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top