Results 1 to 5 of 5
  1. #1
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Duplicate Data on Queries


    Hi,

    When run my query, the results have many lines of the same exact date (dup data). I am not sure why this happens, but I am now in position that the query is not capturing all the data upon exporting to excel because the duplicate data is creating more rows than the number of rows in excel.

    I know there is a way in design view to stop this from happening upon running the query, I just don't know what it is I need to do. Please help.

    Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you can get duplicates depending on the join of 2 tables.

    eliminate the dupes by setting the query property: UNIQUE VALUES = TRUE

  3. #3
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73
    Where do I find the query properties?

  4. #4
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73
    I am not sure how I got there, but I found it!!! HA!!! I think it worked. Thanks.

  5. #5
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    When run my query, the results have many lines of the same exact date (dup data). I am not sure why this happens
    That usually indicates that you have a one-to-many or many-to-many join, which may just be the nature of the beast, but often times is an indication that there may be a problem with how you are joining your two tables.

    For example, if you have two tables that among other things, have a First Name and Last Name field, but if you only join the table based on the Last Name, you may get duplicates because the Last Name is not a unique field. So you would have to include First Name as another join field in your query to rectify that.

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

Similar Threads

  1. Duplicate data message for a data entry form
    By JulieMarie in forum Access
    Replies: 5
    Last Post: 07-30-2013, 08:18 AM
  2. Replies: 5
    Last Post: 05-24-2013, 11:55 AM
  3. Replies: 3
    Last Post: 03-01-2013, 12:41 PM
  4. Multiple Duplicate Queries in One?
    By NewtoIT in forum Programming
    Replies: 0
    Last Post: 03-10-2011, 04:57 PM
  5. Replies: 0
    Last Post: 03-09-2011, 02:59 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