Reply
 
Thread Tools Display Modes
  #1   Report Post  
Peterg
 
Posts: n/a
Default Mail Merge Fields

Please Help - Useing Word 2000.
I have the MergeFields Title, Firstname & Lastname in a letter but if there
is no information in the fields I need to have the Company name.

Can I use a If{ Mergfield TITLE} = " " ,"{Mergfield COMPNAME}",{Mergfield
TITLE}"} statement with the merge fields.

IF TITLE ,FIRSTNAME & LASTNAME = ISNULL THEN MEGRFIELD COMPNAME
The merge fields a from a CSV File.

Thanks
Peter
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default Mail Merge Fields

It seems likely that the lastname field is the important one to use for this
condition thus:

{ IF { Mergefield LastName } = "" "{ Mergefield CompName }" "{Mergefield
Title} { Mergefield FirstName } { Mergefield LastName }" }

will insert the company name if the lastname field is empty, otherwise the
other three fields)

--

Graham Mayor - Word MVP

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



Peterg wrote:
Please Help - Useing Word 2000.
I have the MergeFields Title, Firstname & Lastname in a letter but if
there is no information in the fields I need to have the Company name.

Can I use a If{ Mergfield TITLE} = " " ,"{Mergfield
COMPNAME}",{Mergfield TITLE}"} statement with the merge fields.

IF TITLE ,FIRSTNAME & LASTNAME = ISNULL THEN MEGRFIELD COMPNAME
The merge fields a from a CSV File.

Thanks
Peter



  #3   Report Post  
macropod
 
Posts: n/a
Default Mail Merge Fields

Hi Peter,

Presumably, if the LastName is empty, so too would be the FirstName and
Title. In that case, a field coded as:
{IF{MERGEFIELD LastName} = "" {MERGEFIELD CompName}}
would do.

Cheers


"Peterg" wrote in message
...
Please Help - Useing Word 2000.
I have the MergeFields Title, Firstname & Lastname in a letter but if

there
is no information in the fields I need to have the Company name.

Can I use a If{ Mergfield TITLE} = " " ,"{Mergfield COMPNAME}",{Mergfield
TITLE}"} statement with the merge fields.

IF TITLE ,FIRSTNAME & LASTNAME = ISNULL THEN MEGRFIELD COMPNAME
The merge fields a from a CSV File.

Thanks
Peter



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
mail merge some fields leave other as form fields BethW Mailmerge 1 September 20th 05 06:47 PM
Mail merge fields not visible but printing Eugene Mailmerge 1 June 29th 05 06:20 PM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
Splitting text from mail merge fields Mark Ainsworth Mailmerge 1 March 29th 05 08:34 PM
Empty Mail Merge Fields Meggan Microsoft Word Help 0 January 13th 05 12:43 AM


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