Results 1 to 2 of 2
  1. #1
    bonetakc is offline Novice
    Windows 7 Access 2007
    Join Date
    Jul 2009
    Posts
    1

    Question Problems with SUM in Report Footer

    I have a report based on a query I created. The query produces the five following items:

    PROJECT NUMBER
    DATE
    WORK CODE
    BILLABLE HOURS
    EMPLOYEE

    The Query prompts the user for PROJECT NUMBER.

    I created a Report based on the query that shows the project grouped
    by WORK CODE. This report works great and produces the sum for Each
    Group.

    WHAT I NEED NOW is to create a new SUM based upon work codes in
    the report footer. For example:

    Lets says we have the followng WORK CODES:
    WELDING
    ASSEMBLY
    TEST
    REWORK
    QC
    RESEARCH
    TRAVEL

    The main report would create SUMS for each group by WORK CODE and that is working fine. But we need to know our total ENGINEERING on the
    project and this equals All WELDING + ALL ASSEMBLY (ENG = WELDING + ASSEMBLY) for the project. We need to know total SUPPORT = RESEARCH + TRAVEL.

    I want to be able to add fields at the REPORT footer that will show me the TOTAL BILLABLE HOURS for each of these.



    I am not sure how to construct this expression in ACcESS.

    I basically need to say something like ENG = Sum of all Records where
    WORK CODE is equal to WELDING or ASSEMBLY.

    and for SUPPORT that same idea: SUPPORT = Sum of all records where WORK CODE is equal to RESEARCH or TRAVEL.

    Does anyone know how I can add these to the footer of the report and what the expressions would look like.

    Thanks

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    I would create a new field for each you wish to sum in the group footer i.e. TotalWelding =Sum(Welding) etc then in the report footer do a grand total i.e. GrandTotalWelding = Sum(TotalWelding) etc then you can just add the relevant bits i.e. Eng = GrandTotalWelding + GrandTotalAssembly

    Hope that makes sense

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

Similar Threads

  1. Problems adding a drop down box to report/query
    By rachelm920 in forum Access
    Replies: 1
    Last Post: 05-14-2009, 09:19 AM
  2. Problems changing report design
    By Peter O in forum Access
    Replies: 0
    Last Post: 12-15-2008, 03:01 PM
  3. Totaling a value in group footer...
    By hodgy20 in forum Reports
    Replies: 0
    Last Post: 11-14-2008, 08:28 AM
  4. Need help with values in the footer
    By allochthonous in forum Reports
    Replies: 0
    Last Post: 03-03-2007, 08:20 PM
  5. Page Footer Top
    By RHall in forum Reports
    Replies: 3
    Last Post: 12-15-2005, 09:35 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