View Single Post
  #3   Report Post  
Tab
 
Posts: n/a
Default

I have a complicated if statements in my mailmerge. When I processed it - it
came out incorrectly....can someone help?

This is what I wrote:
{ifΒ«RESONΒ»= €œBKREM€ €œto purchase a Book of Remembrance.€ €œ{ifΒ«RESONΒ»= €œCEMC€
€œfor the cemetery care program.€ €œ{if(Β«RESONΒ»= €œCOF€ €œto support the
Celebration of Freedom.€ €œ{ifΒ«RESONΒ»= €œCOT€ €œto support the Climate of Trust
program.€ €œ{ifΒ«RESONΒ»= €œCOTR€ €œto welcome the FSU delegates at the annual
Climate of Trust Reception.€ €œ{ifΒ«RESONΒ»= €œFOOD€ €œto purchase a food
parcel(s) to the FSU.€ €œ{ifΒ«RESONΒ»= €œINHON€ €œin honor of NAME of HONOREE€
€œ{ifΒ«RESONΒ»= €œINKND€ €œfor the in kind gift of NAME OF GIFT€ €œ{ifΒ«RESONΒ»=
€œINMEM€ €œin memory of NAME OF PERSON(S)€ €œ{ifΒ«RESONΒ»= €œKPPT€ €œto purchase a
Kippot.€ €œ{ifΒ«RESONΒ»= €œMANNA€ €œfor the Manna Program.€ €œ{ifΒ«RESONΒ»= €œMJSCH€
€œto support the Minsk Jewish School through the Bay Area Council.€
€œ{ifΒ«RESONΒ»= €œMOSTM€ €œto purchase a MOST magazine.€ €œ{ifΒ«RESONΒ»= €œVILN€ €œto
aide the elderly in the town of Vilnius.€ €œ{ifΒ«RESONΒ»= €œYADLY€ €œto support
the Yad LYad (Hand to Hand) Program.€ €œ{ifΒ«RESONΒ»= €œYSF€ €œto support and aid
Yana Slobodova in her return to the United
States.€}€}€}€}€}€}€}€}€}€}€ }€}€}€}€}€}.

I thought I did it correctly but apparently not....it comes out like this:
Thank you for your generous gift of $50.00, which we received on March 03,
2005 {ifVILN= €œBKREM€ €œto purchase a Book of Remembrance.€ €œ{ifVILN= €œCEMC€
€œfor the cemetery care program.€ €œ{ifVILN= €œCOF€ €œto support the Celebration
of Freedom.€ €œ{ifVILN= €œCOT€ €œto support the Climate of Trust program.€
€œ{ifVILN= €œCOTR€ €œto welcome the FSU delegates at the annual Climate of Trust
Reception.€ €œ{ifVILN= €œFOOD€ €œto purchase a food parcel(s) to the FSU.€
€œ{ifVILN= €œINHON€ €œin honor of NAME of HONOREE€ €œ{ifVILN= €œINKND€ €œfor the
in kind gift of NAME OF GIFT€ €œ{ifVILN= €œINMEM€ €œin memory of NAME OF
PERSON(S)€ €œ{ifVILN= €œKPPT€ €œto purchase a Kippot.€ €œ{ifVILN= €œMANNA€ €œfor
the Manna Program.€ €œ{ifVILN= €œMJSCH€ €œto support the Minsk Jewish School
through the Bay Area Council.€ €œ{ifVILN= €œMOSTM€ €œto purchase a MOST
magazine.€ €œ{ifVILN= €œVILN€ €œto aide the elderly in the town of Vilnius.€
€œ{ifVILN= €œYADLY€ €œto support the Yad LYad (Hand to Hand) Program.€
€œ{ifVILN= €œYSF€ €œto support and aid Yana Slobodova in her return to the
United States.€}€}€}€}€}€}€}€}€}€}€ }€}€}€}€}€} Your continuing support means
a lot to us.

I want it to determine that if the RESON is "FOOD" then the text that will
be displayed will say "to purchase a food parcel" or if the RESON is "BKREM"
then the text should say "to purchase a Book of Remembrance"...and so
on...not sure where I messed up.

Please help - need to get this finished!!! =)


"Graham Mayor" wrote:

Insert a conditional field on the previous line e.g.

{Mergefield Addr1}{IF {Mergefield Addr2} "" "
{Mergefield Addr2}"}

Note the positions of the line break and the quote marks.
Field boundaries are inserted with CTRL+F9
--

Graham Mayor - Word MVP

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





Sayali wrote:
Hi,
I need to create Labels using Mail Merge. I have the following format
for the labels
First Name Last Name
Addr1
Addr2
Phone Number

I wanted to know how to supress a line if the data for that entry is
not available. Say for example if Addr 2 is blank then I want the
output to look like

First Name Last Name
Addr1
Phone Number

But I am getting the output that looks like this

First Name Last Name
Addr1

Phone Number


I am new at this so I wanted to know if there is any way in which I
can suppress the empty line?

Thanx in advance
Sayali