#1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
John B John B is offline
external usenet poster
 
Posts: 7
Default IF Statement

I would like to know how to go about putting in IF statement into a mail
merge? I have 2 fields, one is called Firstname and the other is called
Client. I would like to have Firstname pulled, and IF blank, then pull
Client. Any help on this would be greatly appreciated. Thanks.

John
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default IF Statement

The field construction that you will need is:

{ IF { MERGEFIELD Firstname } "" { MERGEFIELD Firstname } { MERGEFIELD
Client } }

Each pair of field delimiters { } must be inserted using Ctrl+F9 and you use
Alt+F9 to toggle off the display of the field codes. You will need a space
either side of the .

--
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

"John B" wrote in message
...
I would like to know how to go about putting in IF statement into a mail
merge? I have 2 fields, one is called Firstname and the other is called
Client. I would like to have Firstname pulled, and IF blank, then pull
Client. Any help on this would be greatly appreciated. Thanks.

John



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
John B John B is offline
external usenet poster
 
Posts: 7
Default IF Statement

Doug,

Thanks. I remember doing something similiar to this a few years ago, but
couldn't remember how to do it. I have an addition to this though. I have
another field to add to this. As before, I would like to have Firstname
pulled, and IF blank, then pull Client, and IF Client blank, then pull
Businessname. Hope you can help with this again. Thanks.

John


"Doug Robbins - Word MVP" wrote:

The field construction that you will need is:

{ IF { MERGEFIELD Firstname } "" { MERGEFIELD Firstname } { MERGEFIELD
Client } }

Each pair of field delimiters { } must be inserted using Ctrl+F9 and you use
Alt+F9 to toggle off the display of the field codes. You will need a space
either side of the .

--
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

"John B" wrote in message
...
I would like to know how to go about putting in IF statement into a mail
merge? I have 2 fields, one is called Firstname and the other is called
Client. I would like to have Firstname pulled, and IF blank, then pull
Client. Any help on this would be greatly appreciated. Thanks.

John




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default IF Statement

Just include another If...then...Else field construction

{ IF { MERGEFIELD Firstname } "" { MERGEFIELD Firstname } { IF{
MERGEFIELD
Client } "" { MERGEFIELD Client } { MERGEFIELD Businessname } } }


--
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

"John B" wrote in message
...
Doug,

Thanks. I remember doing something similiar to this a few years ago, but
couldn't remember how to do it. I have an addition to this though. I have
another field to add to this. As before, I would like to have Firstname
pulled, and IF blank, then pull Client, and IF Client blank, then pull
Businessname. Hope you can help with this again. Thanks.

John


"Doug Robbins - Word MVP" wrote:

The field construction that you will need is:

{ IF { MERGEFIELD Firstname } "" { MERGEFIELD Firstname } { MERGEFIELD
Client } }

Each pair of field delimiters { } must be inserted using Ctrl+F9 and you
use
Alt+F9 to toggle off the display of the field codes. You will need a
space
either side of the .

--
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

"John B" wrote in message
...
I would like to know how to go about putting in IF statement into a mail
merge? I have 2 fields, one is called Firstname and the other is called
Client. I would like to have Firstname pulled, and IF blank, then pull
Client. Any help on this would be greatly appreciated. Thanks.

John






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
Using an If Statement Kelly Mailmerge 6 September 28th 07 07:31 PM
How to do an if statement Serendipity Mailmerge 3 September 27th 07 03:32 AM
IF/ELSE Statement Margie Mailmerge 1 September 26th 07 08:43 PM
which statement right , question is Choose the correct statement? how many template?when we click new doc Microsoft Word Help 1 October 16th 06 11:15 AM
which statement right , question isChoose the correct statement? how many template?when we click new doc Microsoft Word Help 1 October 15th 06 11:20 PM


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