Results 1 to 5 of 5
  1. #1
    ClayInHou is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2015
    Posts
    3

    Question Format Page Header Text Box during Project Footer

    I have a report that displays hours worked by staff by week by project for multiple projects. The detail section displays the hour count, the Week footer adds all values for a sub total. The Project footer has a summary sub report that displays each week’s total and gives a grand total for that project. This would be the project total for the reporting period.



    I use the page header to display the project name and the week dates, beginning and end dates. The Report Footer can suppress the entire page header which I have done for the overall group of projects making up this effort.

    The Project Footer happens after a page break. I would like to either conditionally format the Page Header date Text Box to be white during the Project footer so the dates are not displayed, or make the text box invisible during the Project Footer. This is a cosmetic issue because the sub report displays the week ending dates in summary.

    Click image for larger version. 

Name:	1stPostImage.png 
Views:	6 
Size:	140.1 KB 
ID:	23218

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you aware that each section of a report has both an OnFormat Event and an OnPrint Event?

  3. #3
    ClayInHou is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2015
    Posts
    3
    Yes. I have tried to use these events to set a variable to true or false for conditional formatting of the text box. However the switching of the True to False and back at just the right time has been a challenge. I have successfully turned off the text box at the page past the level break but then it is off for the rest of the report. I read somewhere the OnFormat Event happens before the OnPrint Event. I have placed the True/False switch in the Page Header, the Group Header, and the Group Footer for the Project number. I just haven't found the correct combination of these events and sections to achieve the result.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm not sure I follow you. True/False Switch? A Report will make two complete passes to print; one to Format and get some values (like total pages) and one to actually print.

  5. #5
    ClayInHou is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Dec 2015
    Posts
    3
    I shall look into the OnFormat Event. I used a TempVar as Boolean to set the conditional format of the text box to white when True. I set the variable to True or False in the Events I mentioned.

    I may be overthinking this.


    Thank you for your help. I'll focus on the OnFormat Event.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-06-2014, 10:58 AM
  2. Replies: 2
    Last Post: 12-21-2013, 02:09 PM
  3. Replies: 2
    Last Post: 10-15-2013, 09:30 AM
  4. header and footer
    By slimjen in forum Forms
    Replies: 2
    Last Post: 10-03-2011, 08:10 PM
  5. Replies: 0
    Last Post: 02-11-2009, 06:43 PM

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