Results 1 to 3 of 3
  1. #1
    Kamalhro is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    2

    Question Retrieve Data whose date is newest (Multiple date available for each transaction)


    Hi Sir / Madam,
    In a table where i have telephone number with have multiple date, i want to retrieve data with unique report whose date is newest (recent) and ignore oldest date.

    Example:

    Telephone number | Date
    xxxxx9585 | 10-July-2014
    xxxxx9585 | 12-July-2014
    xxxxx9585 | 14-July-2014

    Result should be - xxxxx9585 | 14-July-2014

    Please assist in getting to get the result shown in above example.

    Thanks in Advance.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    Try an aggregate Totals (GROUP BY) query.

    SELECT [Telephone number], Max([Date]) AS LatestDate FROM tablename GROUP BY [Telephone number];
    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.

  3. #3
    Kamalhro is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2012
    Posts
    2
    Thank you its working.

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

Similar Threads

  1. Replies: 21
    Last Post: 06-27-2014, 07:33 AM
  2. Determine which field has the newest date
    By Njliven in forum Queries
    Replies: 2
    Last Post: 08-14-2013, 10:28 AM
  3. how to get data with newest date
    By nubi3 in forum Queries
    Replies: 3
    Last Post: 04-30-2013, 12:14 PM
  4. Replies: 3
    Last Post: 08-18-2012, 03:25 AM
  5. Query From Newest Date
    By SSgtJ in forum Queries
    Replies: 2
    Last Post: 01-21-2010, 01:51 PM

Tags for this Thread

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