Need help with IF field in Microsoft Word

  • Thread starter Thread starter MichelleLTMT
  • Start date Start date
M

MichelleLTMT

Please bear in mind that I have never used IF fields before. With
this said, I am going to try to explain what I am trying to do. I
have documents with document properties, in which these properties are
filled in from our database (i.e. patient name, date of birth, date of
service, etc). I am directing this "IF" question to the document
property of the CC Names.....spelled out the document property looks
like this: { DOCPROPERTY "CC Names with fax" \* MERGEFORMAT } What
I would like the result to be is this: If this previously mentioned
document property is blank (I think <> ??), then no text is required.
If it is anything but blank, I would like the text to read "To
expedite delivery, this document has been faxed prior to physician
review." Can anyone help me with how to add the IF statement to make
this work for me?????? Thanks in advance!
 
You can structure the IF field in either of two ways:

{ IF { DOCPROPERTY "CC Names with fax"} = "" "" "To expedite delivery, this
document has been faxed prior to physician review." }

or

{ IF { DOCPROPERTY "CC Names with fax"} <> "" "To expedite delivery, this
document has been faxed prior to physician review." "" }

What this boils down to is that "" represents "nothing" or "blank," which
you can use as part of the condition or as the TrueText or FalseText (and
note that you can also omit the FalseText in the second example).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top