Will someone tell me, please, how I can suppress (or hide) fields in a Word
mailmerge document that have a value of 0 (Zero).
I'm using Office 2002 SP 3 on a Vista Premium desktop PC.
It's a bit naff sending a letter to someone with a 0 in a blank line in the
middle of their address!
I do need to use Excel for the data base.
Thank you,
Pete
Graham Mayor - 04 Mar 2007 13:32 GMT
If you are sure that the merge field produces 0 when empty, you can trap
that with a conditional field
{IF {Mergefield fieldname} <> 0 "{Mergefield Fieldname}"}
If it is supposed to be a numeric field you can use a number switch instead
eg
{Mergefield Fieldname \# "#;;;"}

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Will someone tell me, please, how I can suppress (or hide) fields in
> a Word mailmerge document that have a value of 0 (Zero).
[quoted text clipped - 9 lines]
>
> Pete
Doug Robbins - Word MVP - 04 Mar 2007 13:34 GMT
{ IF { MERGEFIELD fieldthatmightbezero } = 0 "{ MERGEFIELD
fieldthatcomesafterthefieldthatmightbezero }" "{ MERGEFIELD
fieldthatmightbezero }[Space/Carriage Return]{ MERGEFIELD
fieldthatcomesafterthefieldthatmightbezero }" }
You must use Ctrl+F9 to insert each pair of field delimiters { } and use
Alt+F9 to toggle off their display
replace [Space/Carriage Return] with whatever suits your fancy.

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
> Will someone tell me, please, how I can suppress (or hide) fields in a
> Word mailmerge document that have a value of 0 (Zero).
[quoted text clipped - 9 lines]
>
> Pete
Night Owl - 09 Mar 2007 08:00 GMT
Thanks guys. I'll give them a go over the weekend.
Best regards,
Pete
>{ IF { MERGEFIELD fieldthatmightbezero } = 0 "{ MERGEFIELD
>fieldthatcomesafterthefieldthatmightbezero }" "{ MERGEFIELD
[quoted text clipped - 19 lines]
>>
>> Pete