Word 2002
My data source necessarily contains two groups of address fields (T and U
[Tenant and Unit]). Fields in group T are for special reasons, Group U data
is used by default. For the merge system I'm working on, the user will need
to select from T/U, where data exists in T, otherwise the merge uses group U
data automatically
I have used the MailMergeAfterRecordMerge event to interrupt the merge when
address data is found in address group T. A userform displays Address
records T & U for the user to select which should be used for the current
letter. The user clicks the appropriate button, and the corresponding
address is dropped into the merge. (Merge to New Document)
I'm using AFTERrecordMerge, as some of the data is dropped into a text box,
which doesn't yet exist if I use the BEFORE version of the event.
PROBLEM:
This works well - the appropriate data appears in the Letters1 document
generated by the merge, EXCEPT for the first record, which appears in the
Form document. The first page(s) of the Letters1 document are blank where
the merged data should appear.
Any ideas?
Thanks for your time

Signature
Roger
Shaftesbury (UK)
Word Heretic - 11 Jun 2005 16:24 GMT
G'day "Roger Whitehead" <anonymous@msnews.com>,
A blank para starts the datafile?
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Roger Whitehead reckoned:
>Word 2002
>
[quoted text clipped - 22 lines]
>
>Thanks for your time
Roger Whitehead - 13 Jun 2005 08:12 GMT
No. Data File is MS Excel, embedded query to an Informix database.
But thanks.
Roger
> G'day "Roger Whitehead" <anonymous@msnews.com>,
>
[quoted text clipped - 38 lines]
>>
>>Thanks for your time
Cindy M -WordMVP- - 03 Jul 2005 09:52 GMT
Hi Roger,
Impossible to say, really, without seeing all the code involved. My inclination
is to say: the target range in the document being created isn't being properly
recognized. Perhaps your code isn't able to pick up the result document, yet,
for that first record.
> Word 2002
>
[quoted text clipped - 18 lines]
> Form document. The first page(s) of the Letters1 document are blank where
> the merged data should appear.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Roger Whitehead - 26 Jul 2005 14:29 GMT
Thanks Cindy.
Enlightenment (in a non-cosmic kind of fashion) has struck this afternoon;
I have amended the code in the MailMerge document as follows:
Set obDoc = documents(documents.count-1)
as (perversely ?), Word views the Form letter produced by the Mail-Merge doc
as a lower index........
Assigning the contents of the Shapes(shapes.count) object now fills the Text
Boxes in the appropriate document, with the correct data.

Signature
Regards
Roger
Shaftesbury (UK)
> Hi Roger,
>
[quoted text clipped - 42 lines]
> reply
> in the newsgroup and not by e-mail :-)