Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    26

    Unanswered: Tab Control Hide/Unhide

    I'm using Access97 and can't seem to get the tab page to hide and unhide. My tab name is "Sub Accounts", and by default not visible. Tried both codes below, but can't seem to get it working:

    Once my form is opened,
    ---

    If myCondition Then
    Me.Sub_Accounts.Visible = True
    Else
    Me.Sub_Accounts.Visible = False
    End If
    Me.Refresh

    also tried with [Sub Accounts]

    ---

    If myCondition Then
    Me![Sub Accounts].Visible = True
    Else
    Me![Sub Accounts].Visible = False
    End If
    Me.Refresh

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Is the name of the control Sub Accounts or Sub_Accounts?

    What condition are you checking? Are you sure it's returning true?
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    it could return true I suppose if option explicit wasn't turned on...
    I'd rather be riding on the Tiger 800 or the Norton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •