View Single Post
  #2   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 dynamically inserting/deleting table rows

Use an If...then...Else field construction in the mail merge main document
that tests for the existence of data in the field

{ IF { MERGEFIELD field1 } = "" "{ MERGEFIELD field2 }" "{ MERGEFIELD
field1 } Enter
{ MERGEFIELD field 2 }" }

Press the Enter key (or Shift+Enter) in place of Enter above so that the
{ MERGEFIELD field 2 }" } is on a separate line.

You must use Ctrl+F9 to insert each pair of field delimiters { } and Alt+F9
to toggle off their display.

--
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

"DeepThought" wrote in message
...
If there is no data in the merge field in my data source, I want the blank
row to be deleted allowing the next row containing data to move up into
where
the blank row used to be.

How do I do this?