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 / February 2005

Tip: Looking for answers? Try searching our database.

Multiple If... Then Statement in Word 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sue Hargrave - 26 Feb 2005 16:57 GMT
I see how to enter one If... then statement by using the Insert Word Field in
the main merge document, but I need to say the following and can't figure out
how to do it:

If New is not null and DayF is not null and DayS is not null and AM is null
and PM is not null then enter "Your child will be enrolled in the Fall and
Summer Program for contents of DayF and contents of DayS from 1 to 5 PM."
Doug Robbins - 26 Feb 2005 22:48 GMT
Using Ctrl+F9 to enter each pair of field delimiters { }, you would need
this construction:

{ IF { MERGEFIELD New } <> "" { IF { MERGEFIELD DayF } <> "" { IF {
MERGEFIELD DayS } <> "" { IF { MERGEFIELD AM } = "" { IF { MERGEFIELD PM }
<> "" "Your child will be enrolled in Fall and Summer Programm for contents
of { MERGEFIELD Dayf } and contents of { MERGEFIELD DayS } from 1 to 5 PM."
"" } "" } "" } "" } "" }

I hope I got the correct number of closing delimiters } in the above.  You
then use Alt+F9 to toggle off the display of field codes.  It also may be
necessary to select the field construction and use F9 to get the fields to
update to show the result.
Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

>I see how to enter one If... then statement by using the Insert Word Field
>in
[quoted text clipped - 6 lines]
> and PM is not null then enter "Your child will be enrolled in the Fall and
> Summer Program for contents of DayF and contents of DayS from 1 to 5 PM."

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.