Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2004

Tip: Looking for answers? Try searching our database.

if then else

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Russ - 14 Aug 2004 17:33 GMT
I am trying to use the "if then else" command in a mail merge.  Howerver, I
want the command to be:  if "field x" or "field y" is equal to "value" then
... or ...

is this possible and how would i go about it?
thanks
Signature

Russ

Graham Mayor - 14 Aug 2004 17:54 GMT
The following construction should do the trick - in the example the result
for either being true is ResultA if neither is true ResultB

{IF{Mergefield X} = "value" "ResultA" "{IF {Mergefield Y} = "value"
"ResultA" "ResultB"}"}

Each pair of field boundaries is set with CTRL+F9

The syntax used here is:
IF x = "value" ResultA
IF not then
IF y = "value" ResultA
Otherwise ResultB

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I am trying to use the "if then else" command in a mail merge.
> Howerver, I want the command to be:  if "field x" or "field y" is
> equal to "value" then ... or ...
>
> is this possible and how would i go about it?
> thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.