Results 1 to 4 of 4
  1. #1
    BLFOSTER is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    68

    DAvg Not Working

    I have 2 text boxes in a form header to display average wage. Exact same expression with slightly different criteria. One works, the other doesn't:



    DAvg([Wage],"MyTable",[MyField]="PCC") this one works

    DAvg([Wage],"MyTable",[MyField]="DHS") this one DOES NOT WORK - no #error# or anything....just NOTHING.

    Any Ideas?

    Thank you!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    All of the Domain Functions use only STRINGS for all of the arguments. http://access.mvps.org/access/general/gen0018.htm

  3. #3
    BLFOSTER is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2013
    Posts
    68
    Perfect! Thanks!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're welcome. Glad we could help.

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

Similar Threads

  1. Davg Multiple Criteria Syntax
    By JonathanT in forum Programming
    Replies: 1
    Last Post: 10-30-2013, 10:16 PM
  2. DAvg with multiple criteria help
    By mphynson44 in forum Access
    Replies: 4
    Last Post: 10-03-2013, 02:17 PM
  3. Dsum was working now it is not working
    By ssalem in forum Reports
    Replies: 7
    Last Post: 04-18-2013, 02:57 PM
  4. Replies: 3
    Last Post: 01-29-2013, 04:34 AM
  5. Problem with DAvg function
    By averagejoe in forum Access
    Replies: 1
    Last Post: 10-05-2012, 05:43 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