Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
donna donna is offline
external usenet poster
 
Posts: 109
Default mail merge IF statement question

I am attempting use an if statement

In total this is looking at the SPOUSE field if it is not empty then Mr. &
Mrs., also IF GENDER is not "m" then Ms. if it is "m" then Mr. IF GENDER is
empty the populate with the data in the First_Name field.

This is what I have but it's not working.

Dear { IF {MERGEFIELD Gender} "m" "Ms." "Mr." }{ IF {MERFIELD Gender} = ""
{MERGEFIELD Owner_First_Name}{ IF {MERGEFIELD Spouse} "" "& Mrs." ""} = ""
{ MERGEFIELD Owner_First_Name } «Owner_Last_Name»,

Is this possible?

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default mail merge IF statement question

Hi Donna,

Try:

Dear {IF{MERGEFIELD Spouse} "" "Mr. & Mrs." "{IF{MERGEFIELD Gender}= m Mr.
Ms.} {MERGEFIELD Owner_First_Name}"} {MERGEFIELD Owner_Last_Name}

or, if your 'Spouse' field holds the (female) spouse name and you want it
displayed:

Dear {IF{MERGEFIELD Spouse} "" "Mr. {MERGEFIELD Owner_First_Name} & Mrs.
{MERGEFIELD Spouse}" "{IF{MERGEFIELD Gender}= m Mr. Ms.} {MERGEFIELD
Owner_First_Name}"} {MERGEFIELD Owner_Last_Name}

Cheers

--
macropod
[MVP - Microsoft Word]


"Donna" wrote in message
...
I am attempting use an if statement

In total this is looking at the SPOUSE field if it is not empty then Mr. &
Mrs., also IF GENDER is not "m" then Ms. if it is "m" then Mr. IF GENDER

is
empty the populate with the data in the First_Name field.

This is what I have but it's not working.

Dear { IF {MERGEFIELD Gender} "m" "Ms." "Mr." }{ IF {MERFIELD Gender} =

""
{MERGEFIELD Owner_First_Name}{ IF {MERGEFIELD Spouse} "" "& Mrs." ""} =

""
{ MERGEFIELD Owner_First_Name } «Owner_Last_Name»,

Is this possible?



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
How do I mail merge to EMAIL from MS Word AND add a pdf attachment Lily@Insight Mailmerge 24 January 15th 07 09:33 PM
Mail Merge - Next Record If Statement HiramPat Mailmerge 5 April 22nd 05 04:03 PM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
Word 2003 and Access 2003 Mail Merge question HD87glide Microsoft Word Help 2 December 15th 04 02:29 PM
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements Mark V Mailmerge 8 November 30th 04 01:31 PM


All times are GMT +1. The time now is 05:23 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"