Reply
 
Thread Tools Display Modes
  #1   Report Post  
Sue Hargrave
 
Posts: n/a
Default 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   Report Post  
Doug Robbins
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
letters - ask/fillin Caroline H New Users 2 February 25th 05 08:19 PM
Boiletplates from Word Perfect linda Microsoft Word Help 1 January 28th 05 05:37 PM
word xp crashes after macros are recorded kharris0405 Microsoft Word Help 3 January 11th 05 10:50 PM
Continuous breaks convert to next page breaks Jennifer Hunt Microsoft Word Help 2 December 30th 04 05:45 PM
How do I convert a cd in word perfect to microsoft word greylady Microsoft Word Help 1 November 23rd 04 07:03 PM


All times are GMT +1. The time now is 11:42 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"