Results 1 to 3 of 3
  1. #1
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486

    #error on Avg of the Avg

    I am trying to create a report that shows the average of a users hours and then at the bottom shows the overall average of all users.



    So if I have 10 users there will be an avg of hours worked for each user. Then at the bottom of the report I want to display what the avg is for all the users and hours worked.

    SO
    user 1 avg 10 hours
    user 2 avg 15 hours
    user 3 avg 12 hours

    avg for all users 12.33

    I created a report that has the avg hours for each user but when i try to do the total avg as =Avg([Avg of users]) i get #ERROR

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,820
    Aggregate functions cannot refer to controls, only fields in the form/report RecordSource. So the textboxes for both calcs must have the same expression: =Avg([fieldname]). The results are determined by the section the textbox is in.
    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. Replies: 11
    Last Post: 05-01-2014, 11:56 AM
  2. Replies: 3
    Last Post: 01-23-2014, 07:49 AM
  3. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  4. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  5. Replies: 1
    Last Post: 05-11-2012, 10:59 AM

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