Results 1 to 2 of 2
  1. #1
    mazides is offline Novice
    Windows 8 Access 2007
    Join Date
    Oct 2013
    Posts
    1

    calculate the Average of certain records


    i use access 2007and i have a table with customer details and their purchases. I need a query tocalculate the average value of the last 5 purchases per customer, irrespectiveof the day those purchases took place. That is, one customer may have made hislast 5 purchases between lets say 15/09/13 and 25/09/13, while another may havemade them one month earlier.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Check out the TOP parameter http://allenbrowne.com/subquery-01.html#TopN
    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: 1
    Last Post: 10-29-2012, 07:49 AM
  2. Calculate the Average
    By Jerseynjphillypa in forum Queries
    Replies: 1
    Last Post: 06-18-2012, 03:26 PM
  3. Replies: 6
    Last Post: 07-23-2011, 12:35 PM
  4. Calculate average in a query
    By srbooth in forum Queries
    Replies: 1
    Last Post: 02-20-2010, 09:41 AM
  5. Calculate Time and Display Records
    By w2vijay in forum Reports
    Replies: 1
    Last Post: 02-12-2010, 01:58 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