Well, the other simple way to merge into a table is to do a
catalog/directory merge where you set up a single table row in your mail
merge main document, with one merge field in each cell.
But you haven't said how you are deciding where your output document is
going to be split, because in that case, you just get one continuous table
with no page breaks etc.
The reason I suggested a DATABASE field is because when you want continuous
tabular output of arbitrary length, that's the way to do it. If you need to
do a merge, then consider using one data source for the merge, with one
record for each "document" you want to produce, and use one DATABASE field
in the mail merge main document that extracts the records related to the
current record in the data source, typically using a key field nested in the
SELECT query in the DATABASE field.
E.g. your data source has records like
sk stext
1 mytexta
2 mytextb
2 mytextc
3 mytextd
3 mytexte
3 mytextf
etc. and you want documents with
mytexta
then
mytextb
mytextc
then
mytextd
mytexte
mytextf
In that case, you can use a data source for the merge such as SELECT
DISTINCT sk FROM mytable, then put a DATABASE field in your Mail Merge Main
Document that does
SELECT stext FROM mytable WHERE sk = { MERGEFIELD sk }
(where { MERGEFIELD sk } is a merge field code and the {} are the special
field braces you can insert using ctrl-F9)
There are problems with this approach, e.g. in recent versions of Word MS
code gets confused between the fields in the data source for the merge and
the fields in tables in the DATABASE field, but you probably either need to
be doing that, or "rolling your own merge" by inserting table rows as
required using C#, in which case your current design won't work either.
Peter Jamieson
> Although that's probably a good idea, I really, really need to use mail
> merge, since this document will be needed to be treated in the same way as
> labels and letters, in that they will be separate *.doc files, but will be
> merged against the same sources programatically in C#.
Polaris - 15 Mar 2007 05:48 GMT
I tried the directory merge with a template and it put one row per page. Am I
missing something?
Graham Mayor - 15 Mar 2007 07:14 GMT
See 'How to use mail merge to create a list sorted by category in Word
2002 - http://support.microsoft.com/?kbid=294686' which covers the basics of
a directory merge used to list by groupings. Word is not really designed for
this type of merge.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> I tried the directory merge with a template and it put one row per
> page. Am I missing something?
Polaris - 15 Mar 2007 19:58 GMT
That helped. Thanks a lot.
Peter Jamieson - 15 Mar 2007 08:32 GMT
Yes, it probably didn't do what you want because so far you haven't told us
exactly what you want - although I think we probably guessed, and if we
guessed correctly, the other suggestion I made should meet your needs.
Peter Jamieson
>I tried the directory merge with a template and it put one row per page. Am
>I
> missing something?