Results 1 to 2 of 2
  1. #1
    runtheeast is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    2

    Return only one instance of a single field

    I am writing a query with a few fields- first name, last name, e-mail, address, city, state, zip, registration date.

    I am trying to write a query (or possibly multiple queries if necessary) that do the following:

    1. Only return the latest instance (according to registration date) of a single e-mail address. I have this much down (by itself).
    2. Only return a single instance of an address. So, if my wife and I are both in the database, I only want one of our records to be returned.

    Like I said, I have #1 down by itself. Any ideas of how to do both of these together? I've tried doing a subquery/nested select but no dice so far.

    Thanks for any help.

  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,623
    For 2 you could maybe do a query using the TOP parameter. Review 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: 3
    Last Post: 04-17-2013, 07:04 PM
  2. Replies: 2
    Last Post: 07-27-2012, 08:27 AM
  3. Replies: 16
    Last Post: 04-11-2012, 10:56 AM
  4. return max/min value in single query
    By garamon in forum Access
    Replies: 2
    Last Post: 10-23-2011, 03:50 PM
  5. Replies: 3
    Last Post: 08-26-2011, 12:11 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