Results 1 to 3 of 3
  1. #1
    jtm013 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    117

    Duplicate Search Query filtered by Date Range

    Hello All,



    I have searched so far come up with nothing helpful.
    I have a query that is barebones made using the Query Wizard. All it does is count the duplicate values and display them.
    I just need to add the ability to run the query only on records between a certain date range.
    Right now In design view my query looks like this.
    Field: Customer Name Field: Customer Name NumberofDups: Customer Name Customer Name
    Table: Tbl_Data_entry Tbl_Data_entry Tbl_Data_entry
    Total: First Count Group By
    Sort: Ascending
    Show Check Check
    Criteria: >1
    Or:


    This returns something along the lines of

    Mr. Red- 34
    Mr. Blue- 13
    Mr. Green- 12
    Assuming that is the number of times red, blue, and green show up in the whole database. I need to be able to only query a certain date range.

    I tried:

    Field Customer Name Field: Customer Name Numberofdups:Customer Name Customer Name Date Initiated
    Table tbl_data_entry tbl_data_entry tbl_data_entry tbl_data_entry
    Total First Count Group By Group By
    Sort Ascending
    Show Check Check
    Criteria >1
    Or


    However, this just returns

    Mr. Red-2
    Mr. Red-12
    Mr. Red-20
    Mr. Blue- 2
    Mr. Blue-5
    Mr. Blue 6
    etc.

    I presume this is because while it is only querying the supplied date range it is also grouping duplicates by dates. I don't want it to do that.

    Any help is appreciated thank you!

    JT

  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,771
    Don't Group By on the [Date Initiated] field. Select WHERE and Criteria parameters:

    BETWEEN [enter start date] AND [enter end date]
    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
    jtm013 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    117
    Thanks! That did the trick!!!

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

Similar Threads

  1. Multiple Entry Date Range Search
    By setnaffa in forum Queries
    Replies: 3
    Last Post: 08-12-2014, 10:22 AM
  2. Replies: 3
    Last Post: 09-11-2013, 09:49 AM
  3. Search Date Range with Null Sources
    By MintChipMadness in forum Forms
    Replies: 8
    Last Post: 08-23-2012, 08:56 AM
  4. Date Range filter in a Duplicate query
    By knickolyed in forum Forms
    Replies: 0
    Last Post: 06-27-2011, 04:56 AM
  5. Search form with a date range
    By mantro174 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:45 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