Results 1 to 2 of 2
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Hide certain report footers and/or control


    I am using an Access report with a single page footer. I am not using any groupings for totals or anything like that. My report is basically a "two-page report", and I want different page footers for each page. How can I do this with VBA?

    I've tried the Page Header/Footer properties, but I'm curious how to do this with VBA because I have more control there. Just want to hide a footer or control within that footer based on the page it is on.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You can test like:

    If Page = 1 Then

    You can hide a section like:

    Me.PageHeaderSection.Visible = False
    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. Show/Hide Page Control
    By RLJ in forum Forms
    Replies: 1
    Last Post: 02-04-2013, 10:48 AM
  2. Using VBA to hide page footers problem.
    By michaelh93 in forum Access
    Replies: 5
    Last Post: 01-21-2013, 08:39 PM
  3. Open Report and Hide Control using VBA
    By tylerg11 in forum Reports
    Replies: 4
    Last Post: 08-09-2012, 12:42 PM
  4. Can sum on only one of two group footers
    By hilian in forum Reports
    Replies: 6
    Last Post: 05-20-2012, 06:51 AM
  5. Hide each control, control group or subform?
    By BRV in forum Programming
    Replies: 2
    Last Post: 12-09-2011, 09:36 AM

Tags for this Thread

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