Results 1 to 4 of 4
  1. #1
    tonere is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    22

    Looping(?) to get Unique Result

    I have a table (NSCH) that contains two fields, Id and College which tracks the colleges (College) attended by students (Id) and may contain multiple records for each unique Id. I would like to output a table that has two (2) fields, a single record for each Id and a field that concatenates all the colleges.

    NSCH looks like this:

    200100 UNC
    800500 UVA
    800500 VT



    I would like the output to look like this

    200100 UNC
    800500 UVA, VT

    I have looked at many looping examples but do not understand, is there an easier way to get the result?

    Thank you in advance for helping!

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  3. #3
    tonere is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    22
    After hours of copying, pasting and editing, I got it.

    I had a lot of trouble with the third argument.

    Thank you so much for the reference to Allen Brownes solution.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Glad you got it working. I think we should both thank Allen Browne.

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

Similar Threads

  1. Looping Search
    By srmezick in forum Forms
    Replies: 5
    Last Post: 11-04-2011, 11:13 AM
  2. Looping through Records in SQL
    By make me rain in forum Queries
    Replies: 13
    Last Post: 07-17-2011, 08:58 AM
  3. Looping in Access
    By ducthang88 in forum Programming
    Replies: 2
    Last Post: 12-04-2010, 07:43 PM
  4. Looping through a tbl to find a certain value
    By cwf in forum Programming
    Replies: 1
    Last Post: 05-17-2010, 04:02 PM
  5. Looping syntax
    By fadiaccess in forum Access
    Replies: 1
    Last Post: 10-23-2009, 02:57 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