View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Name of featu when field is empty, rest of info "slides"...

Word 2007 should remove blank lines by default /when there is nothing
except MERGEFIELD fields on them/. But there are circumstances in which
that does not actually happen, so it is probably better to use IF
fields, e.g.

a{ IF "{ MERGEFIELD myfield }" = "" ""
"{ MERGEFIELD myfield }
" }z

will output

az

if myfield is blank and

amydata
z

if myfield is "mydata"

All the pairs of {} need to be the special field code braces that you
can enter using ctrl-F9

Peter Jamieson

http://tips.pjmsn.me.uk

wrote:
... up or to the left so that there are no blank spaces.

In Filemaker Pro (FMP), if memory serves, this is called "slide" or
"sliding". What would the term be in Word 2007, pls? I need to find
out how to code for blank data. There must be a way to emulate this
in a word processing doct., vs. a database such as FMP.

Thanks!

D