Results 1 to 4 of 4
  1. #1
    joe.blow is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2014
    Posts
    2

    Unhappy Need help with eliminating/sorting dates.

    I have my data, in this particular scenario the data is dates (day/month/year). There are numerous dates., In my scenario I need to eliminate all data entries that DO NOT repeat 3 or more times. How would I go about doing this or what would the correct equation be to input?

  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,772
    Maybe:

    SELECT * FROM table WHERE datefield IN (SELECT datefield FROM table WHERE Count(*)>=3 GROUP BY datefield);
    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
    joe.blow is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2014
    Posts
    2
    Sorry, can you explain a little more in depth? Sorry I am very new to this program. What does * mean? thank you for your response!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    The * is wildcard. Open query builder for a new query, switch to SQL View, should see the * already in the statement. If you want to explicitly list desired fields, remove the *.

    The query might should be:

    SELECT * FROM table WHERE datefield IN (SELECT datefield FROM table GROUP BY datefield HAVING Count(*)>=3);
    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. Sorting of dates no working?
    By Buakaw in forum Queries
    Replies: 7
    Last Post: 02-15-2012, 10:47 AM
  2. Eliminating Duplicates in a Report
    By RedWolf3x in forum Reports
    Replies: 5
    Last Post: 10-21-2011, 10:42 AM
  3. Replies: 4
    Last Post: 10-14-2010, 04:49 PM
  4. eliminating pop up boxes asking for a value
    By REBBROWN in forum Queries
    Replies: 3
    Last Post: 10-13-2010, 11:50 PM
  5. Sorting in a Query (Dates)
    By JohnS in forum Queries
    Replies: 2
    Last Post: 10-23-2009, 03:51 AM

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