Multiple If... Then Statement in Word 2003

S

Sue Hargrave

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."
 
D

Doug Robbins

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

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

Top