Well, there are possibly two ways to do this that are much faster:
1.) Create a sub report which draws the data from the child tables only
(include the PK in the sub report query) and then link the maste report and
child reports by the key between the tables, placing the sub report in the
detail section.
2.) In your query use an outer join between the tables to include all rows
common on the key between the two tables. This will pull in all records
from the child table, and duplicate the data from the main table for each
row. Then for the fields that are duplicated set the hide duplicates value
to true.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg
"Tim Callahan" <(E-Mail Removed)> wrote in message
news:06e401c386ae$6cfd7fd0$(E-Mail Removed)...
> Hello,
>
> I have two tables, a parent and a child. THere is a 1 to
> many relationship from the parent to the child.
>
> I have a simple report that lists the contents of the
> parent table. I want one field to be a concatenation of
> data from the related child record(s).
>
> This is currently working by using calling a function e.g.
> =GetChildRecordValues([ParentId]) that runs a parameter
> query and iterates through the results, and returns a
> string with the concatenated child record values.
>
> I suspect that this is a slow process and wanted to know
> if there might be a higher performance way of doing this.
>
> Thanks in advance,
>
> Tim