Results 1 to 2 of 2
  1. #1
    canfish is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    25

    Allen Browne's concatenate function - don't display duplicates?

    Hi all,



    I am using Allen Browne's concatenate in one field code in order to display all of the entries in a field in one entry on the query. This is working fine for me. But I would like to take this a step further, and I'm not sure how to make the changes:

    I want to have the function not display any duplicate items, so if it was originally:

    JetwayFunction, JetwayFunction, JetwayFunction, StewFunction, StewFunction, PlatterFunction

    It would turn out:

    JetwayFunction, StewFunction, Platterfunction


    Does anybody know if there is a way to do this?

    Thanks so much!

    canfish

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    This is utterly untested, but you can try modifying this line to:

    strSql = "SELECT DISTINCT " & strField & " FROM " & strTable
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Concatenate firstname + lastname
    By Dega in forum Access
    Replies: 2
    Last Post: 08-11-2010, 04:58 PM
  2. How to Concatenate String Criteria
    By ColPat in forum Programming
    Replies: 2
    Last Post: 06-26-2010, 08:48 PM
  3. Concatenate Formula
    By Shingo in forum Programming
    Replies: 1
    Last Post: 07-25-2009, 09:14 AM
  4. Need Code to Concatenate All Records
    By menntu in forum Programming
    Replies: 4
    Last Post: 06-05-2009, 09:43 AM
  5. concatenate string using loop
    By nengster in forum Programming
    Replies: 0
    Last Post: 02-23-2009, 08:05 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