Link to home
Start Free TrialLog in
Avatar of Jacques Weissenburger
Jacques WeissenburgerFlag for France

asked on

How preparing a report including a window for a subfrom containing a small list of names

Hi,

I am preparing a report to be printed, based on a form, This works fine.
The form contains a subform..linked to the form.  I usually prepare the report, with one line for any record of the subform. This works fine too.
But now I have a subform with only one column of short names.. And I don't want to waste one line per record on my report.. I would like these names to be set on the report like a series of continuous names, separated by something like a dot or a comma..

Thanks for any help

Jacques
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

You'd have to create that in a query, and then use the query to drive that report. You can use the Concat function found here:

https://www.experts-exchange.com/Database/MS_Access/A_2380-Domain-Aggregate-for-Concatenating-Values-by-Group-in-Microsoft-Access.html
Or, you can set the subform to show multiple columns.  You should be able to get 4-5 columns across if you are only showing one field.
Avatar of Jacques Weissenburger

ASKER

Thanks Scott,  I will go through the concat function. But the document is not so easy to understand..how I can do this in a query (My report is based on 3 queries, because I have some relations that need this).   But OK,  I will take the time if I am not able to follow PatHartman proposition..

Thanks also  PatHartman : this could really be the solution.  You saw it right, I never have more then 5 records in my subform (and only one field). So, if I could make MSAccess display them in a single (an unique) row, it would be perfect..But I don't see how I can display the 1-Field records of my subform in columns and not in rows.
ASKER CERTIFIED SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is just what I needed

Thanks