micshrp Posted February 11, 2005 Posted February 11, 2005 I have a portal which contains multiple related records that I want to merge to a letter. Example: Record 1 has three associated portal reocrds. The fields are MealType, Date, and Cost Estimate (i.e., lunch, 2/21/05, $8.75). I want to insert/merge all three related records into part of a letter. I am able to merge the first related record into the letter but I'm unsure how to merge the rest. Any advice?
stanley Posted February 11, 2005 Posted February 11, 2005 Micshrp: Welcome to the Forums. When printing related records you are best off printing while in the related table. Optionally, you can script the collection of the data from the related fields into a single global field using a loop, and the global field can then be used in your letter. -Stanley
Fenton Posted February 11, 2005 Posted February 11, 2005 To get the values from multiple related records in one field you can use the Design function, ValueListItems (Get(FileName); "Value list name") So you have to create a Value list, filtered by that relationship, targeting the field. You can surround this with a Substitute, to change to comma-separated, Substitute ( ValueListItems (Get(FileName); "Value list name");
micshrp Posted February 11, 2005 Author Posted February 11, 2005 Thanks for the advice. I was able to merge them as I wanted using the calculations you described.
Recommended Posts
This topic is 7563 days old. Please don't post here. Open a new topic instead.
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