View Single Post
  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Mailmerge into two different formats

Peter's suggestion works for me. With the field codes displayed in the
document, the field construction looks like the following where | represent
the vertical borders of the table cells:

{ IF { MERGEFIELD Type } = 1 "
| { MERGEFIELD Title } | { MERGEFIELD Description } |
| { MERGEFIELD Owner } | { MERGEFIELD Status } |
ΒΆ
" { MERGEFIELD Title } }

Note that there is a paragraph mark after the table that is included in the
quote marks surrounding the table.

--
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, originally posted via msnews.microsoft.com
"robw" wrote in message
...
Thanks Peter, I've tried that but couldn't get it to work.

(Obviously) I can get the straightforward "show A or show B depending on
the value of C" scenario to work correctly.

I can even get it to work as expected when the font size and colour of A
is
different from those of B - which I found to be a pleasant surprise.

However , if A (or B) is a table, copied into place as you suggest, it
doesn't show at all for the relevant value of C. Even if the table is
the
degenerate 1x1 case it doesn't work

Am I simply expecting too much?

Regards
Rob