You could use
{ IF "{ MERGEFIELD myfield }" = "" "" ",{ MERGEFIELD myfield }" }
or in Word 2003 and probably 2002 just
{ MERGEFIELD myfield \b , }
should be enough.
You can do the latter by selecting the field and right-clicking, then Edit
Field and fill in the relevant option.
otherwise, use Alt-F9 to view the full field codes, ctrl-F9 to insert each
pair of the special field braces {}, and type the remaining text.
Peter Jamieson
> How do I insert a comma only before a merge field that is populated? In
> other words, no comma if the merge field following the comma is blank.
chartley - 07 Jul 2005 16:08 GMT
Thank you!
> You could use
>
[quoted text clipped - 15 lines]
> > How do I insert a comma only before a merge field that is populated? In
> > other words, no comma if the merge field following the comma is blank.