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 / December 2003

Tip: Looking for answers? Try searching our database.

Word XP Mail Merge with "If" field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amy Pasko - 01 Dec 2003 04:24 GMT
I am using Word XP and would like to create an IF field statement with
an "AND"

For example an ASK field is used to create a bookmark.  An IF field is
then used to determine if a {FIELD}is = to text and if the bookmark is
equal to specific text. If both values are correct, then an
INCLUDETEXT is used to include a word document.

I can not figure out how to use the AND.  
{ASK lors "Type 1 for Long Letterhead or 2 for Short Letterhead" \d
"2"}{IF{MERGEFIELD file_notes }="Miami" **AND SHOULD GO HERE**{REF
lors \h}="2"{INCLUDETEXT "C:\\letterhead.doc" \* MERGEFORMAT}" ""}

I would appreciate any help.

Thanks.Amy
Peter Jamieson - 01 Dec 2003 13:39 GMT
The simplest methof is probably

If condition-1 then
 If condition-2 then
   includetext
 end if
end if

which being translated into field codes might be

{ IF { MERGEFIELD file_notes } = "Miami"
 "{ IF { REF lors } = "2"
   "{ INCLUDETEXT "C:\\letterhead.doc" }"
   ""
 }"
 ""
}"

(the layout outside the quoted strings is not particularly important - this
can all be on one line in your document).
--
Peter Jamieson - Word MVP

> I am using Word XP and would like to create an IF field statement with
> an "AND"
[quoted text clipped - 12 lines]
>
> Thanks.Amy
 
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.