Combine field values from multiple records as a list in a report?

G

Guest

Is there a way to combine multiple field values from all matching records
into one control in a report with a comma separating each value?

I am trying to set up a report that lists all of the laborers that will be
working on a particular job; however, instead of listing the names in a
vertical column I want them to look like this: "Achmed, Bob, Hans, etc" Any
ideas?

Thanks!
 
F

fredg

Is there a way to combine multiple field values from all matching records
into one control in a report with a comma separating each value?

I am trying to set up a report that lists all of the laborers that will be
working on a particular job; however, instead of listing the names in a
vertical column I want them to look like this: "Achmed, Bob, Hans, etc" Any
ideas?

Thanks!

List them where? In the Report Footer?

Add an unbound text control to the Report footer.
Set it's Can Grow property to Yes.
Name this control NameSummary

Code the Detail Format event:
Me![NameSummary] = Me![NameSummary] & (", " + Trim([LaborerName]))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top