Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Multiple If... Then Statement in Word 2003
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." |
#2
|
|||
|
|||
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 "Sue Hargrave" Sue wrote in message ... 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." |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
letters - ask/fillin | New Users | |||
Boiletplates from Word Perfect | Microsoft Word Help | |||
word xp crashes after macros are recorded | Microsoft Word Help | |||
Continuous breaks convert to next page breaks | Microsoft Word Help | |||
How do I convert a cd in word perfect to microsoft word | Microsoft Word Help |