Newbies guardian Posted November 25, 2009 Newbies Posted November 25, 2009 I need to create a parent text field [Parent Table] that combines the first names of all of the related children [student Table] for use as a Merge Field in letters. Example: Dear Mrs. Smith, <> have been doing very well in school. I've always wanted to know how to combine fields from multiple related records but have never figured out how. Any help???
bcooney Posted November 25, 2009 Posted November 25, 2009 The easiest way is the List ( ) function. You can either grab the related fields directly, or more commonly, create a calc field in the child that concantenates a nice string, and then use List to bring that into the parent.
Newbies guardian Posted November 25, 2009 Author Newbies Posted November 25, 2009 I've created a list field to combine the related names but I need to be able to use it as a merge field item in letters so I have to change format from: John Mary Joseph to: John, Mary, Joseph Ant ideas on a calc for a new field to help me format this?
bruceR Posted November 26, 2009 Posted November 26, 2009 I've created a list field to combine the related names but I need to be able to use it as a merge field item in letters so I have to change format from: John Mary Joseph to: John, Mary, Joseph Ant ideas on a calc for a new field to help me format this? Substitute( List( relation::field; "¶"; ", "))
Newbies guardian Posted November 30, 2009 Author Newbies Posted November 30, 2009 Thanks Bruce! I appreciate all the help.
Daniel T. Posted April 5, 2010 Posted April 5, 2010 Thanks for the solution, although I had to modify the code a little to get it to work: Substitute( List( relation::field ); "¶"; ", ")
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now