1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Access Unhide tabs based on checked box

Discussion in 'Business Applications' started by rawnrg, Nov 28, 2011.

Thread Status:
Not open for further replies.
  1. rawnrg

    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
     
  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    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.
     
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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1028735

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice