
Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> When I try that I get the "Invalid Merge Field" popup box. It says
> this mergefield (NextMergefield) is used in the main document, but it
[quoted text clipped - 47 lines]
>>>> Thanks,
>>>> Glenn
What I am trying to do is prevent a blank line from showing up if the e-mail
isn't to be listed.
> NextMergefield is a pseudonym for the next field you wish to use from your
> data file. Replace it with that field name!
[quoted text clipped - 55 lines]
>>>>> Thanks,
>>>>> Glenn
Graham Mayor - 21 Aug 2005 14:49 GMT
See my other answer in this thread.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> What I am trying to do is prevent a blank line from showing up if the
> e-mail isn't to be listed.
[quoted text clipped - 65 lines]
>>>>>> Thanks,
>>>>>> Glenn
Doug Robbins - 21 Aug 2005 15:16 GMT
On line 1:
{IF {Mergefield PublishEmail} = "Yes" {Mergefield Email} { IF {Mergefield
PublishPhone} = "Yes" { Mergefield Phone}}""}
On line 2:
{IF {Mergefield PublishEmail} = "Yes" { IF{Mergefield PublishPhone} = "Yes"
{ Mergefield Phone} "" }}}
Line 1 checks to see if the email is to be published. If it is, it inserts
the email address. If it isn't, it checks if the phone is to be pubished.
If it is, it inserts the phone number. If neither are to be published,
neither is inserted.
Line 2 checks ot see if the email was published (in which case the phone
would not have been published by line 1), then it checks to see if the phone
is to be published and if it is, it inserts the phone number. If the phone
is not to be published, nothing is inserted.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> What I am trying to do is prevent a blank line from showing up if the
> e-mail isn't to be listed.
[quoted text clipped - 58 lines]
>>>>>> Thanks,
>>>>>> Glenn