Results 1 to 6 of 6
  1. #1
    Christineg2 is offline Novice
    Windows 10 Office 365
    Join Date
    Dec 2023
    Posts
    3

    Duplicate records in query


    Hi I am running a query where I have many records in table A and one record Table B. The problem is that when the records match it duplicates the record in table B which is not what I want to see.

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    If you mean it duplicates record b for each record a (resulting in 2x the number of records in a), then you have a cartesian join. Google it.

  3. #3
    Christineg2 is offline Novice
    Windows 10 Office 365
    Join Date
    Dec 2023
    Posts
    3

    duplicate record

    Quote Originally Posted by davegri View Post
    If you mean it duplicates record b for each record a (resulting in 2x the number of records in a), then you have a cartesian join. Google it.
    I have uploaded what I mean. Thanks
    Attached Thumbnails Attached Thumbnails Untitled.jpg  

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That's how queries normally work - all related data is displayed. Doing what you want in query is difficult. It is simple with a report by using textbox HideDuplicates property or report Sorting & Grouping feature.
    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.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    you can do this with your query recordsource - see this link

    https://www.access-programmers.co.uk...report.326715/

  6. #6
    Christineg2 is offline Novice
    Windows 10 Office 365
    Join Date
    Dec 2023
    Posts
    3
    Quote Originally Posted by CJ_London View Post
    you can do this with your query recordsource - see this link

    https://www.access-programmers.co.uk...report.326715/

    This is perfect. Thank you for your assistance.

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

Similar Threads

  1. Duplicate records in query
    By vnms2001 in forum Queries
    Replies: 2
    Last Post: 02-26-2018, 01:19 PM
  2. Regarding duplicate records in a query
    By ritimajain in forum Queries
    Replies: 30
    Last Post: 07-18-2013, 11:00 PM
  3. Duplicate Records in Query, Tried Everything
    By burrina in forum Queries
    Replies: 3
    Last Post: 12-02-2012, 06:29 PM
  4. Query will duplicate records
    By funkygoorilla in forum Queries
    Replies: 3
    Last Post: 09-29-2011, 01:32 AM
  5. How to not show duplicate records in query?
    By JimmD43 in forum Queries
    Replies: 3
    Last Post: 05-29-2011, 02:54 PM

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