Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Trudy
 
Posts: n/a
Default IF Condition Question

I found a very simple answer on the web last night. I tested it and it works
perfectly. Thanks to everyone!

http://www.hillsdale.edu/its/tips/mmspace.asp

"Graham Mayor" wrote:

There is no 'middle_initial' field normally associated with merges from
Outlook - see http://www.gmayor.com/mailmerge_from_outlook.htm

However the correct syntax would be

{Mergefield First_Name}{IF {Mergefield Middle_Initial} ""
"space{Mergefield Middle_Initial}"}space{Mergefield Last_Name}

Replace space with real spaces


--

Graham Mayor - Word MVP

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




Trudy wrote:
We are having a problem with an Outlook address/Word Mail Merge
problem. In the addresses that the recipient has a middle initial,
the merge works fine. When there is no middle initial, two spaces are
being inserted between the first and last names instead of one.

Could someone tell me what is wrong with the below? The middle
initial is a separate field.

The first condition is:
{ IF { MERGEFIELD Middle_Initial } = " " { MERGEFIELD First_Name }" "
{ MERGEFIELD Last_Name }"

The second condition is:
" { MERGEFIELD First_Name }" " { MERGEFIELD Middle_Initial" "{
MERGEFIELD Last_Name }"




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
what key is question mark on Brazilian language keyboard? recife Microsoft Word Help 5 April 27th 23 02:48 PM
Be nice if your suggested answers fit the question. Harvey Eastman Microsoft Word Help 3 April 20th 06 02:59 PM
Exam question wrong about Word? Opinions, please! Jamie Furlong New Users 6 April 18th 06 11:56 AM
CHANGE FONT COLOR AS A CONDITION IN A FORM [email protected] Microsoft Word Help 1 August 23rd 05 02:57 PM
Font question? SJH Microsoft Word Help 4 January 6th 05 10:54 AM


All times are GMT +1. The time now is 02:15 AM.

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"