Results 1 to 4 of 4
  1. #1
    TimC is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    34

    Access Query has Duplicates

    I am trying to create a query that pulls data from a thirdparty’s tables. The location code andlocation description are not primary keys AND are directly linked to other information within the table.
    I've created the table but get lots of duplicates. Is there a way to hide the duplicates? See example below.If so, could you please provide step-by-step instructions?Thanks.



    Org1Cd
    Org1Desc
    79 Ottawa Street
    79 Ottawa Street
    79 Ottawa Street
    87 Michigan Ave
    87 Michigan Ave
    87 Michigan Ave

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    This is a situation where posting some related code would be helpful.

  3. #3
    TimC is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    34
    The duplicates repeat about 16,000 times even though there are 22 actual names. What kind of code would you suggest? Can you provide something that I might be able to cut and paste into visual basic? Thanks.

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    without seeing your code, try using something like

    SELECT DISTINCT fld1, fld2
    FROM myTable

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

Similar Threads

  1. Replies: 3
    Last Post: 01-18-2016, 01:55 PM
  2. Query Duplicates
    By sgremp1 in forum Queries
    Replies: 4
    Last Post: 08-22-2014, 06:06 PM
  3. Replies: 6
    Last Post: 10-23-2013, 08:06 AM
  4. Need a count of a Duplicates Query
    By AudiA4_20T in forum Queries
    Replies: 1
    Last Post: 03-05-2013, 01:16 PM
  5. Duplicates in Query
    By Dega in forum Queries
    Replies: 1
    Last Post: 05-02-2010, 05:09 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