Results 1 to 2 of 2
  1. #1
    rahayes is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    9

    Average function

    How do I create an expression that will average a group of fields?



    I have five fields and I want to generate an average of these fields for each row. Can't seem to get the 'avg' to work.

    Thanks
    Rachel

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,524
    Avg (and Access itself) is designed to work across records, not fields. You'll have to write a function that does what you want, similar to these:

    http://support.microsoft.com/default...b;en-us;209857
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Average help please
    By C90RanMan in forum Programming
    Replies: 1
    Last Post: 08-01-2010, 12:14 PM
  2. Replies: 13
    Last Post: 05-28-2010, 11:57 AM
  3. Average data
    By whites in forum Queries
    Replies: 1
    Last Post: 12-24-2009, 07:03 AM
  4. Property Sheet Average Function How to do?
    By techexpressinc in forum Reports
    Replies: 2
    Last Post: 06-25-2009, 11:10 AM
  5. 7 day average and total
    By jannie in forum Access
    Replies: 1
    Last Post: 05-14-2009, 05:52 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