Results 1 to 3 of 3
  1. #1
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54

    Generate Sum from a work center and order #

    I have a basic problem, hopefully you guys have a basic solution



    I have a very large data set and here is a very small snapshot. Basically, I want Access to Find the average hours worked per work center per order/chrg#.

    As you can see, there are various "hours worked" per load center per order. Is there a way to have access find the order number, sum all the "hours worked" for each individual load center (within that order) together, and produce a unique sum of hours worked per order number, per work center?



    Here is some data and an example of what I want to do:

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Assuming you have all your data in one table (tblOrders), then just run this query:

    Code:
    SELECT tblOrders.Order, tblOrders.WorkCentre, Sum(tblOrders.HoursWorked) AS SumOfHoursWorked
    FROM tblOrders
    GROUP BY tblOrders.Order, tblOrders.WorkCentre;

  3. #3
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54
    Thank you, this worked great!

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

Similar Threads

  1. Generate reports by frequency
    By MFS in forum Programming
    Replies: 2
    Last Post: 11-18-2010, 08:09 AM
  2. Report will not center on page
    By AKQTS in forum Reports
    Replies: 3
    Last Post: 10-21-2010, 12:36 PM
  3. generate multi-level csv
    By shank in forum Queries
    Replies: 5
    Last Post: 09-16-2010, 04:25 AM
  4. generate next possible identifier
    By BayerMeister in forum Programming
    Replies: 5
    Last Post: 08-25-2010, 08:30 AM
  5. Generate Image
    By dbman in forum Import/Export Data
    Replies: 0
    Last Post: 01-31-2008, 10:46 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