Results 1 to 4 of 4
  1. #1
    ETjoumas is offline Novice
    Windows 8 Access 2007
    Join Date
    Aug 2014
    Posts
    2

    duplicate vendor address

    Hello, I'm trying to identify vendors with the same address and I'm trying capture Address Line 1 and Address Line 2 in my SQL but I'm getting an error. Can someone take a look and let me know what I'm missing.

    SELECT *
    FROM [Dup Vendor] AS PH1
    WHERE (Exists (SELECT *
    FROM [Dup Vendor] AS PH2


    WHERE PH2.[ID] <> PH1.[ID]
    AND PH2.[Address Line 1 & Address Line 2] = PH1.[Address Line 1 & Address Line 2]));

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    did you try the FIND DUPLICATES WIZARD? (when you click new query button)

  3. #3
    ETjoumas is offline Novice
    Windows 8 Access 2007
    Join Date
    Aug 2014
    Posts
    2
    Yes, but I can't export that with the columns I need.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Please tell us about your tables and fields and then exactly "the columns I need."

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

Similar Threads

  1. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  2. Vendor Selection!!
    By skylitz in forum Access
    Replies: 2
    Last Post: 08-16-2010, 04:09 AM
  3. Replies: 1
    Last Post: 10-07-2009, 08:15 AM
  4. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 PM
  5. Email Report for each Vendor
    By dennisg in forum Reports
    Replies: 0
    Last Post: 09-29-2008, 02:43 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