Results 1 to 4 of 4
  1. #1
    Worm is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    6

    Latest Transaction Report

    User Date Limit New Limit Authorised
    Ann Clarke 01/05/10 5 500 John
    Ann Clarke 03/05/10 10 600 Mary
    Fred Smith 01/05/10 5 200 Bill
    Fred Smith 03/05/10 10 100 Ellie
    Fred Smith 09/05/10 10 100 Ellie
    Bill Martin 10/10/10 10 500 Ellie


    Bill Martin 06/09/10 10 500 Susan




    I want a report that will list the latest transaction only for each User. The File name is Transaction.

    Have tried and tried!

    TIA

  2. #2
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Create an aggregate query first

    SELECT user, Max([date]) as MostRecentDate
    FROM transactions
    GROUP BY user

    Then create a new query and bring in the query from above and your transaction table. Join the query and table via the user and the date fields. Select the fields you want for your final query.

    BTW, it is best not to use "date" as a field name since it is a reserved word in Access.

  3. #3
    Worm is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    6
    Wonderful.

    Many thanks

  4. #4
    jzwp11 is offline VIP
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome

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

Similar Threads

  1. Query latest record
    By asherbear in forum Queries
    Replies: 5
    Last Post: 08-02-2010, 03:58 PM
  2. Query for latest date? what am I doing wrong?
    By Overdive in forum Queries
    Replies: 1
    Last Post: 12-18-2009, 06:04 AM
  3. Query to find latest date
    By Lockrin in forum Access
    Replies: 2
    Last Post: 12-16-2009, 10:00 AM
  4. Urgent: Need to make a transaction form
    By Sheharyar_rr in forum Access
    Replies: 1
    Last Post: 10-31-2009, 10:52 AM
  5. Latest Date Records
    By Rick West in forum Queries
    Replies: 1
    Last Post: 09-25-2009, 11:16 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