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

Tip: Looking for answers? Try searching our database.

Merge Fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
smchugh - 08 Nov 2005 14:06 GMT
I have one paragraph that needs to be printed if 2 conditions are met.

If spring and program_code then paragraph.  I have 20 program codes.  I
can't find an easy way to do this.

Do I have to have the paragraph entered in 20 times?  I do not want to use
the includetext field.

Thanks.
Graham Mayor - 08 Nov 2005 15:06 GMT
What type of merge document is this?

If Includetext for some reason is unacceptable then how about an autotext
field?

Assuming your fieldnames are spring and program_code and you need a true
result then something like
{IF {Mergefield Spring} = "true" "{IF {Mergefield field_code} = "true" "Put
your paragraph, includetext field or autotext field here"}"}

If you are producing a list, set the document type to directory/catalog. and
enter the information just once.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I have one paragraph that needs to be printed if 2 conditions are met.
>
[quoted text clipped - 5 lines]
>
> Thanks.
smchugh - 08 Nov 2005 16:48 GMT
This is just a letter document.
Okay, your suggestion worked, but that leaves me with this issue...

I will have to do that statement approx 15 more times

{IF {Mergefield Term} = "Spring" "{IF {Mergefield program} = "xx" "Put
your paragraph"}"}
{IF {Mergefield Term} = "Spring" "{IF {Mergefield program} = "xy" "Put
your paragraph"}"}

How do I put them all together to make sure I do not have spacing issues.

> What type of merge document is this?
>
[quoted text clipped - 18 lines]
> >
> > Thanks.
Doug Robbins - Word MVP - 08 Nov 2005 19:49 GMT
{ IF { Mergefield Term } = "Spring" "{ IF {Mergefield program } = "xx" "Put
your paragraph for Program xx" { IF { Mergefield program } = "xy" "Put
your paragraph for Program xy" { IF { Mergefield program } = "xz" "Put
your paragraph for Program xz" [etc] } } }"" }

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> This is just a letter document.
> Okay, your suggestion worked, but that leaves me with this issue...
[quoted text clipped - 32 lines]
>> >
>> > Thanks.
 
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.