Results 1 to 3 of 3
  1. #1
    item67 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2015
    Posts
    6

    How to merge data from related records into one string

    I have a table called "Article" which has an relation with several other tables. One of the tables is called "Size" and an other is called "Colors". Each Article has a minimum of 1 and a maximum of 10 "sizes" and/or "colors". One of the fields in a "size" record is a field that contains a combination of two letters.



    For example:
    Article "100" has 3 related sizes with the lettercodes: "AA", "AB" and "AC" and two colors "red" and "blue"
    Article "101" has 6 related sizes with the lettercodes: "AA", "BB", "CC", "DD", "EE" and "FF" and two colors "red" and "black"

    Now I want to create an overview that has the following result:
    100 Red AA-AB-AC
    100 Blue AA-AB-AC
    101 Red AA-BB-CC-DD-EE-FF
    101 Black AA-BB-CC-DD-EE-FF

    For this overview I need to merge the data from lettercodes for into one string. Is this possible?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    tbl1.color & " " & tbl2.size

  3. #3
    item67 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2015
    Posts
    6
    Thnx for your response. I did some further research on the internet and I found "fconcatfld function" which does exactly what I want.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-22-2014, 04:32 PM
  2. Show related records in a string
    By cbrsix in forum Programming
    Replies: 3
    Last Post: 09-11-2013, 12:47 PM
  3. Replies: 10
    Last Post: 10-10-2012, 11:15 PM
  4. Data entry related records
    By illoquentgent in forum Programming
    Replies: 10
    Last Post: 05-02-2012, 10:43 AM
  5. query won't display records with no related records
    By James Brazill in forum Queries
    Replies: 1
    Last Post: 06-28-2011, 02:10 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