Results 1 to 12 of 12
  1. #1
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40

    Help with a totals filter

    I have a table with 4 time fields. from these 4 fields I get totals. What I want to do is breakup the totals depending on which department did the work. So Basically I will have fours total fields.



    time1 / Dept /
    60 ---/ A
    time2 / Dept /
    30 -- / B
    time3 / Dept /
    20 ---/ A
    time4 / Dept /
    45 ---/ C

    Total A | Total B | Total C | Total D
    80 -----| 30 ----| 45 -----| 0

    What would be the best way round this.
    Last edited by deiniolj; 03-09-2011 at 09:46 AM. Reason: Formating

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Create a query and add your fields. Switch on grouping and select sum in the totals field for time.

  3. #3
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40
    I'm a little confused. Not used this feature before. (Also using 2010 if that makes a difference)

    My table consists of
    ID
    Details1 = Set question
    Time1 = 34
    Depatment1 = ETS
    Details2 = set Question
    Time2 = 20
    Depatment2 = AB
    Details3 = Set Question
    Time3 = 15
    Depatment3 = DU
    Details4 = Set Question
    Time4 = 34
    Depatment4 = ETS
    totaltimeETS=68 (Want the total time "ETS" spent on this job)
    totaltimeDU=15 ("DU")
    totaltimeSS=0 ("SS")
    totaltimeAB=20 ("AB")

    If played around with the calculated filed in the table view, but only get the sum of all 4 fields I need them broken down.

  4. #4
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40

    Please Help

    Has anybody got any idea with this, the reply I got before doesn't do anything..

  5. #5
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    I think I may be a little confused by your fields. Can you confirm what fields you have in your table.
    Thanks.

  6. #6
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40
    I have a label boxs with the set questions i.e how much time did you spent creating a report.
    then a date field (not important)
    Time field (set to number)
    Dept (with a dropdown with four different departments) Want to be able to figure out how much time each departments spent on each record (for me this would be a person).

    So on the
    10/03/11 / 25 (mins) / ETS (dept)
    11/03/11 / 45 (mins) / AC (dept)

    This make better sense.

    If you want I can make a smaller version and make a sample..

  7. #7
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40
    If you have better idea's for me to lay this out it would be appreciated.

    Deiniol

  8. #8
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Sorry still a little unclear. Do you have 4 department and 4 time fields in your table or just 1 of each?

    If I were creating this I would have the following:
    ID
    Question - drop down
    Time Spent
    Department - drop down

    Then to get the totals do the following:
    Create a new query.
    Add your table.
    Add the fields Time Spent and Department.
    Switch on grouping and choose Group By on the Department field and Sum on the Time field.

  9. #9
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40
    I have about 25 questions and 4 departments. It just depends who does the work..

    So that 25 time fields that need filling with set dept. From my DB it a initials fields but it the initials correspond to persons in certain dept..

    Please look at my sample.

  10. #10
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    Sorry but the computer I am on doesn't have Access10. If you convert it to a 2007 or earlier file format I could take a look for you.

  11. #11
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40
    It won't let me save as a 2007 file. I will recreate and repost this afternoon. and save as 2007..

  12. #12
    deiniolj is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Wales
    Posts
    40
    Try this, and see if it works..

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

Similar Threads

  1. Footer Totals
    By allenjasonbrown@gmail.com in forum Reports
    Replies: 3
    Last Post: 09-30-2010, 09:40 AM
  2. Import a totals value
    By vCallNSPF in forum Access
    Replies: 5
    Last Post: 12-13-2009, 07:01 PM
  3. Expense Totals
    By Nosaj08 in forum Database Design
    Replies: 10
    Last Post: 05-06-2009, 11:35 AM
  4. Day of Week Totals
    By ddog171 in forum Queries
    Replies: 1
    Last Post: 03-18-2006, 07:01 PM
  5. query - totals
    By mslieder in forum Access
    Replies: 0
    Last Post: 02-22-2006, 06:11 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