Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2013
    Posts
    3

    Unanswered: Access 2007: Records duplicated in query results

    I have a simple database which is basically a list of company documentation. One of the fields is a drop down menu for the document status as in: published (on the intranet), archived etc. There is also an autonumber field so that each record can be uniquely identified.

    I want to make a report to show all 'published' documents, however duplicate data has appeared in the query and is therefore showing in my report. It is definitely duplicated at the query level because the autonumber appears in duplicate (and triplicate) for various records, but not all and not in the table. I did also try deleting the duplicate record but this only deleted the original record from the table.

    I have only basic knowledge of Access and I do not know any SQL. Please can someone tell me how to fix this or what I am doing wrong!

  2. #2
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,424
    Provided Answers: 8
    Check your joins

    Can we have a look at the query show us the sql
    hope this help

    See clear as mud


    StePhan McKillen
    the aim is store once, not store multiple times
    Remember... Optimize 'til you die!
    Progaming environment:
    Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
    VB based on my own environment: vb6 sp5
    ASP based on my own environment: 5.6
    VB-NET based on my own environment started 2007
    SQL-2005 based on my own environment started 2008
    MYLE
    YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.

  3. #3
    Join Date
    Apr 2013
    Posts
    3
    Do you meant the SQL view of the query?

    SELECT [Document Database].[ID], [Document Database].[Date Requested], [Document Database].[Requested by], [Document Database].[Document title], [Document Database].[Doc Code], [Document Database].[V], [Document Database].[Status], [Document Database].[Remove from cirulation], [Document Database].[Doc ID], [Document Database].[ISO code], [Document Database].[Division], [Document Database].[Document type], [Document Database].[Priority], [Document Database].[Divisional S/O needed?], [Document Database].[Divisional S/O], [Document Database].[Compliance S/O needed?], [Document Database].[Compliance S/O], [Document Database].[ISO S/O needed?], [Document Database].[ISO S/O], [Document Database].[Legal S/O needed?], [Document Database].[Legal S/O], [Document Database].[Completed], [Document Database].[Go live date], [Document Database].[Notes], [Document Database].[Attachments], [Document Database].[Attachments].[FileData], [Attachments].[FileFlags] AS Expr1, [Document Database].[Attachments].[FileName], [Attachments].[FileTimeStamp] AS Expr2, [Document Database].[Attachments].[FileType], [Attachments].[FileURL] AS Expr3, [Document Database].[File location], [Document Database].[PDF], [Document Database].[Fillable PDF], [Document Database].[Q4 2012 Rebrand], [Document Database].[Last updated]
    FROM [Document Database]
    WHERE ((([Document Database].[Status])="published"));

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Is this query built on top of another query?

    If so we'll need to SQL view of that too!


    ....and any queries that's based on too, etc, etc
    George
    Home | Blog

  5. #5
    Join Date
    Apr 2013
    Posts
    3
    I just have the table with all the data in it ("Document Database"), then a very simple query to find all records from that table where the "status" field is marked "published" that is it! No queries on queries. I used the query wizzard and have also tried making one from scratch. Same result with some random duplications here and there....

    I have made other similar queries to separate out single fields, some work with no duplication and others dont. I am stuck as to why this is happening.

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
  •