Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Modify [Table1 Query Query] to do Count and Avg aggregation.



    SELECT Sum([Table1 Query].TotalSecs) AS SumSecs, Count([Table1 Query].[TotalSecs]) AS CountRecs, Avg([TotalSecs]) AS AvgSecs FROM [Table1 Query];

    I expect your actual data will have some fields for a ParticipantID or TrialID and the aggregate query will need a GROUP BY clause. How these queries should be modified depends on your actual data structure. Do some research on building aggregate queries.
    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.

  2. #17
    msamir12 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2015
    Posts
    9
    @june7
    Thanks a lot for your response but I assume that I have exprements each one has a time and I have for example 20 trials each trial has a time this is the sum of the time in the QUERY but I need to know the average handling time like that (total time / total trials) that means I need the calculation of (total time/20) in this DB the total time comes from the QUERY and the total of trials is the ID (auto count - primary key) I need to make this equation to have this "Average" like this equation
    Please If you or any one can help with that I know you can and I need it badly ... thanks a lot

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't understand. What do you mean by the total of trials is the ID? Post example raw data and example of desired output.
    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. #19
    msamir12 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2015
    Posts
    9

    Thumbs up Thanks a lot

    Guys thanks a lot for all of you I have the pleasure to join such community it is very useful and helpful forum I already made very good things and remembered some of what I forgot before

    Thank You guys

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 04-11-2015, 03:54 AM
  2. Replies: 2
    Last Post: 08-21-2014, 08:36 AM
  3. Replies: 5
    Last Post: 07-24-2014, 07:54 AM
  4. Replies: 42
    Last Post: 03-01-2013, 06:58 AM
  5. Replies: 1
    Last Post: 02-28-2012, 09:16 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