Results 1 to 4 of 4
  1. #1
    Lorlai is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    107

    Average Query

    I need to create an average query that will average the values from three columns, jan, feb, mar. I'm having problems coming up with the syntax. Does anyone know how I could properly do this?

    Thank you!

  2. #2
    Lorlai is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    107
    I was finally able to find what I needed:

    Code:
    Qtr1: (nz([Nov],0)+nz([Dec],0)+nz([Jan],0))/3
    Just out of curiosity, does anyone know what the "nz" means?

  3. #3
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

  4. #4
    Lorlai is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    107
    Perfect, thank you!

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

Similar Threads

  1. changing average Query
    By joebox8 in forum Queries
    Replies: 1
    Last Post: 06-27-2011, 02:12 AM
  2. SQL query for average (2 tables)
    By JoshD in forum Queries
    Replies: 5
    Last Post: 04-13-2011, 06:12 AM
  3. Replies: 2
    Last Post: 07-14-2010, 06:10 AM
  4. Replies: 13
    Last Post: 05-28-2010, 11:57 AM
  5. Rounding the Average in a Query
    By jakelufkin in forum Access
    Replies: 3
    Last Post: 06-19-2009, 08:31 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