Results 1 to 5 of 5
  1. #1
    Shimble is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2018
    Posts
    3

    Using Avg only working for some fields

    I have a report that filters scores by supervisor on a form and opens a report. The report uses Avg on the fields for different categories. It seems to be working for 2 of the categories but all the rest return 0

    I have the AVG fields on a group on section of the report. I can't figure out why it works for 2 fields and not the others.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  3. #3
    Shimble is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2018
    Posts
    3
    Attached is the file of the stripped down database. It'll give an error on load, just ignore that. open the navigation form, put in the date range of the 13th and select June for the supervisor then run the supervisor report.
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    None of the Avg calcs are working for me. I find it interesting that these are all Calculated fields in table. I have never used Calculated fields. So I removed Avg function and bind to field and still get 0. I tested calculating Avg in query using Totals button from ribbon - only 2 fields work, and in table 3 fields work.

    So, I did a test to perform calcs in query instead of Calculated field in table. Bind textbox to that query field. The Avg works.

    Most experienced developers advise against using Calculated field in table. This is the first time I have observed justification for that.


    Don't bother with sorting in query. Report design using Sorting & Grouping will override anyway.


    Advise not to use spaces nor punctuation/special characters (underscore only exception) in naming convention.
    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.

  5. #5
    Shimble is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2018
    Posts
    3
    That fixed it right up, thank you for the help.

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

Similar Threads

  1. Checkbox to Hide Fields not working
    By KerryAustin in forum Forms
    Replies: 2
    Last Post: 08-29-2014, 08:25 AM
  2. Replies: 1
    Last Post: 05-12-2014, 07:42 AM
  3. clear fields button not working
    By fainterm in forum Forms
    Replies: 20
    Last Post: 02-04-2014, 01:13 PM
  4. Search Form drop down fields not working
    By wnicole in forum Access
    Replies: 1
    Last Post: 09-19-2013, 07:43 AM
  5. 2 Fields combined to textbox not working
    By kris335 in forum Forms
    Replies: 3
    Last Post: 09-19-2011, 10:32 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