[mso] Re: Word field codes

  • From: "Greg Chapman" <greg@xxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Thu, 9 Jan 2003 16:13:12 -0600

I'm not sure that can work with MergField codes in general. The help
file in XP has some pretty decent information and an example very
similar to what you're attempting. Amongst the things added in XP is a
MergField switch that specifies to insert the specified chracters
between the field and the next one only of the field result is not
empty. That switch is \f. Previous versions inserted a double space in
place of the empty field. Is that the problem you're trying to avoid?

If that's the case then you might want to do the evaluation differently
as an empty field isn't likely to return a Null. Instead, try this:

{IF {MERGEFIELD State} = "" {MERGEFIELD ID}, {MERGEFIELD SSN}}

Greg Chapman
http://www.mousetrax.com 
"Counting in binary is as easy as 01, 10, 11!
With thinking this clear, is coding really a good idea?"


> -----Original Message-----
> From: mso-bounce@xxxxxxxxxxxxx 
> [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf Of Glenda Wells
> Sent: Thursday, January 09, 2003 3:28 PM
> To: 'mso@xxxxxxxxxxxxx'
> Subject: [mso] Word field codes
> 
> 
> I want to write a formula for merges in Word 2000 that does 
> something like this (which I can do in Excel and Access)
>  
> If SSN is null, use ID otherwise, SSN
>  
> The problem I'm having is with the Is Null part and Word Help 
> has been no help at all!
>  
> {IF {MERGEFIELD SSN} IS NULL {MERGEFIELD ID}, {MERGEFIELD SSN}"}
> 

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx?Subject=unsubscribe

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: