Results 1 to 4 of 4
  1. #1
    sjack is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    3

    Retrieving last three payments for each customer

    I have a table (tblCustomerPayments) with the following fields:
    Payment_Id
    Payment_Customer_Id
    Payment_Date
    Payment_Amount



    In Access 2003, I'm having trouble creating a query that returns the most recent three payments for each Customer_Id.

    Any ideas?

    sjack

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sjack is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    Thanks! That answered my question. I'm a little surprised that SQL requires a couple of steps to get the right

  4. #4
    sjack is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    Thanks! That answered my question. I'm a little surprised that SQL can't manage a query like this in one step.

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

Similar Threads

  1. Add activity for each customer
    By nostr4d4m in forum Queries
    Replies: 11
    Last Post: 03-25-2011, 09:08 AM
  2. Retrieving data on my website
    By kattys in forum Access
    Replies: 1
    Last Post: 04-27-2010, 05:02 PM
  3. Replies: 2
    Last Post: 03-31-2009, 11:15 AM
  4. SQL- retrieving info
    By jmarti57 in forum Programming
    Replies: 0
    Last Post: 12-10-2008, 03:05 PM
  5. Retrieving Week of Year in a date range
    By Korvega in forum Queries
    Replies: 2
    Last Post: 05-27-2006, 06:29 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