Results 1 to 3 of 3
  1. #1
    roaftech is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2012
    Location
    Romania
    Posts
    65

    Report Footer - controlled location

    This being my first post here, I would like to thank all those whose contributions have been helpful to me previously.

    I have prepared a report which has a variable number of detail items. This means that the report footer may appear anywhere on the final page of the report, immediately after the final detail item. This is obviously the preferred location when the report footer contains summary info such as totals or averages.



    However, in this instance there are no such figures and I am using the report footer for footnotes that appear on the final page only (ie, not part of the page footer). I would prefer the report footer to sit immediately above the page footer, rather than below the detail section. Is there a way to achieve this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    roaftech is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2012
    Location
    Romania
    Posts
    65
    Thanks for the prompt response.
    I read through the link you suggest and the various other links that it led to, and came up with the following hybrid code which gives me the effect that I wanted, but by a different route:

    Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
    'Used to set the height of text boxes on forms and reports.
    'Heights are specified in twips - 1cm = 567 twips
    If Me.Page = Me.Pages Then ' check for last page
    Me.Label13.Height = 240 ' set the height on last page (twips)
    Else
    Me.Label13.Height = 0 ' set the height on other pages
    End If
    End Sub

    Label13 is the text box that contains my footnote.
    The code might seem more complex than necessary but the 'else' clause allows me to work with the text box at full size on the design page, without having to remember to reset the height to 0 manually.
    I suspect that if the footnotes were longer than 1 line then it might be necessary to adjust the page footer height too, to avoid excess blank space on the preceding pages.
    Last edited by roaftech; 11-03-2012 at 01:46 PM. Reason: Context clarification

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

Similar Threads

  1. Replies: 10
    Last Post: 12-07-2012, 01:57 PM
  2. Page Breaks and the Report Footer
    By dssrun in forum Reports
    Replies: 4
    Last Post: 05-03-2011, 03:23 PM
  3. Error in Footer Sum on Report
    By eww in forum Reports
    Replies: 2
    Last Post: 08-26-2010, 01:54 PM
  4. Incorrect summation in report footer
    By wizard_chef in forum Reports
    Replies: 2
    Last Post: 12-07-2009, 06:53 AM
  5. Problems with SUM in Report Footer
    By bonetakc in forum Forms
    Replies: 1
    Last Post: 07-30-2009, 04:53 AM

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