Results 1 to 3 of 3
  1. #1
    ANTHROPOIDLUVA is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2012
    Posts
    13

    Use Command Button & Code to Hide and Unhide Form Footer

    Is there a code that would allow form footer section and its contents to remain hidden until a command button is clicked when viewing form on computer screen? Please help.

  2. #2
    theosgood is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Location
    Denver, CO
    Posts
    30
    I'm still learning Access but this sounds similar to how I hide/show two different tabs in a tabbed form.

    First I set the tab property, AdPanelTabZ.Visible = False
    Then I have this code on a button.

    Private Sub Zone_RegionSelect_Click()
    Me.AdPanelTabZ.Visible = True
    Me.AdPanelTabZ.SetFocus
    Me.AdPanelTabR.Visible = False
    End Sub

    This makes AdPanelTabZ visible and hides AdPanelTabR. I have another button to reverse the visible properties. I'm not sure if footers can be handled the same way but hopefully this points you in the right direction.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Me.Section(acFooter).Visible = True
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-23-2011, 07:11 AM
  2. Command button code to clear form
    By windwardmi in forum Forms
    Replies: 15
    Last Post: 11-21-2010, 03:21 PM
  3. How can I hide/unhide DB window with a single button?
    By aquaraider in forum Programming
    Replies: 2
    Last Post: 10-09-2009, 07:01 AM
  4. Form/report command button code
    By max3 in forum Forms
    Replies: 1
    Last Post: 08-26-2009, 02:18 AM
  5. Replies: 6
    Last Post: 06-03-2009, 02:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums