Results 1 to 5 of 5
  1. #1
    pvoegele is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2013
    Posts
    2

    create a report the gives a breakdown of a sum

    I use a Access database at work to track work hours by billing code. However, I need to have a report that displays a break down of hours worked by each code. The following is a sampling of how the report displays data and the total of hours:

    EMPLOYEE NAME DATE WORKED CODE TOTAL HOURS WORKED
    JEFF M. 4/11/2013 C1 8.00
    DOUGLAS S. 4/11/2013 C1 9.50
    KAREN A. 4/11/2013 C1 4.00
    TOM K. 4/11/2013 C2 6.00


    TOM K. 4/11/2013 C1 2.00
    ADAM L. 4/11/2013 C2 3.00
    ADAM L. 4/11/2013 C1 5.50
    TOTAL HOURS WORKED: 38.00

    I would like it to do the following when it displays the total:

    TOTAL HOURS WORKED: 38.00
    TOTALS HOURS WORKED BY CODE:
    C1= 29.00
    C2= 9.00

    Is this possible to have a sum calculation to only total when another field equals a certain value or is it possible to have it automatically to give a breakdown?

    Thank you!!!

  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
    Create a new query based on that table. Add the code and hours fields to the grid. Click on the totals icon on the ribbon (looks like a Greek E). In the new row displayed, change group by to sum on the hours field. Run the query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Do you want report to show the individual employee info? Consider instead of aggregate sums in query, build report using Grouping & Sorting feature with aggregate calcs in group footer textboxes.
    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.

  4. #4
    pvoegele is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2013
    Posts
    2
    Quote Originally Posted by June7 View Post
    Do you want report to show the individual employee info? Consider instead of aggregate sums in query, build report using Grouping & Sorting feature with aggregate calcs in group footer textboxes.
    I just want to have individual totals of each work code.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Then you can do aggregate query or use the report structure to calc aggregates. Make the report Detail section not visible and the individual info won't display. This is basic Access functionality and Access Help has guidelines on both.
    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.

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

Similar Threads

  1. Two databases to create one report
    By ash128kwil in forum Access
    Replies: 5
    Last Post: 03-29-2013, 01:24 PM
  2. Create a rank in report
    By bishop0071 in forum Reports
    Replies: 2
    Last Post: 01-17-2013, 03:47 PM
  3. How to create report
    By jags281173 in forum Reports
    Replies: 3
    Last Post: 08-09-2012, 02:27 AM
  4. how to create report
    By ngu059 in forum Reports
    Replies: 3
    Last Post: 01-19-2011, 04:46 PM
  5. Create a recordset for a report
    By vjboaz in forum Programming
    Replies: 0
    Last Post: 11-18-2008, 03:28 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