Results 1 to 4 of 4
  1. #1
    alcorp is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    12

    Finding duplicate data from two columns

    Hi,



    I am trying to find duplicate data from two columns and I want to query the all the duplicates. I tried the query wizard but it only finds duplicates in the column itself. I am trying to compare the columns together and see what is found in column A that is also found in column B and also Vice Versa.

    I have several thousands of rows so anything will help. I tried using the query tables and the sql code but I can't figure it out. Thanks.
    Last edited by alcorp; 07-21-2014 at 01:20 PM. Reason: SQL, query, dupicate

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

    SELECT * FROM tablename WHERE A = B;
    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
    alcorp is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    12
    When I tried that, it said it was missing parameter value

  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,632
    Sorry, I rushed my response.

    SELECT Table1.* FROM Table1, Table1 AS Table1_1 WHERE (((Table1.A)=[Table1_1].[B]));

    Of course, need to use your actual table and field names.

    However, can each value occur more than once in each of the columns? If so, might need to look at another approach.
    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. Replies: 4
    Last Post: 06-18-2013, 07:36 AM
  2. Replies: 6
    Last Post: 04-06-2013, 10:36 AM
  3. Finding Duplicate Values
    By TimMoffy in forum Forms
    Replies: 4
    Last Post: 11-21-2012, 10:22 PM
  4. Replies: 4
    Last Post: 10-11-2012, 07:40 AM
  5. ummmm... finding duplicate rows
    By mcchung52 in forum Queries
    Replies: 3
    Last Post: 02-07-2012, 03:02 AM

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