Thank you so much to you and Graham. I'm having trouble getting it to work
without syntax errors. I don't have a lot of experience with mail merge. But
while I was trying to figure it out, I came across a numeric picture switch
that drops digits to the left of the "x" placeholder. I'm still unable to
type without getting syntax errors but theoretically would this work?
{ = 111053 + 111439 \# x## } displays "492". (example in documentation)
{ = «Cardholder_Number»\# x### } (how it would maybe work for me?)
Also, I'm still unable to key this into my document so that it works. I can
get the brackets using Ctrl-F9 but everything I type inside gets a syntax
error.
Thank you so much. You guys are great!
> <<
> It seems like it should be
[quoted text clipped - 32 lines]
> > Thanks so much!
> > Laurel
Peter Jamieson - 05 Jun 2007 19:43 GMT
HI Laurel,
You're on the right track, but let's start from scratch:
1. To do it the way you propose:
Select the point where you want to enter the field in your document.
Press ctrl F9 to get
{ }
Inside that, type
= \# x###
to give you
{ = \# x### }
Click just before the backslash and use ctrl-F9 to insert another {}, to
give you
{ = { } \# x### }
then between those new {}, type
MERGEFIELD Cardholder_Number
to give you
{ = { MERGEFIELD Cardholder_Number
} \# x### }
2. To do it the way I suggested,...
Select the point where you want to enter the field in your document.
Press ctrl F9 to get
{ }
Inside that, type
=mod(,10000)
to give you
{ =mod(,10000) }
Click just before the comma and use ctrl-F9 to insert another {}, to give
you
{ =mod({ },10000) }
then between those new {}, type
MERGEFIELD "the name of your account field"
to give you
{ =mod({ MERGEFIELD "the name of your account field"
},10000) }
3. That's probably enough for you to follow Graham's suggestion as well.
Peter Jamieson
> Thank you so much to you and Graham. I'm having trouble getting it to work
> without syntax errors. I don't have a lot of experience with mail merge.
[quoted text clipped - 59 lines]
>> > Thanks so much!
>> > Laurel
Graham Mayor - 06 Jun 2007 07:04 GMT
I think yours looks simpler ;)

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> 3. That's probably enough for you to follow Graham's suggestion as
> well.
> Peter Jamieson
Peter Jamieson - 07 Jun 2007 10:18 GMT
Unfortunately mine would also need something like \#0000 to cope with
leading zeros in the last four digits so Laurel's wins AFAICS!
Peter Jamieson
>I think yours looks simpler ;)
>
>> 3. That's probably enough for you to follow Graham's suggestion as
>> well.
>> Peter Jamieson
Laurel - 06 Jun 2007 13:39 GMT
{ MERGEFIELD «Cardholder_Number»\# x### } works just like the RIGHT function
in Excel and displays the last 4 digits of the cardholder number in my
letter. Simple and no math!
Thanks for your help and suggestions.
Laurel
> Thank you so much to you and Graham. I'm having trouble getting it to work
> without syntax errors. I don't have a lot of experience with mail merge. But
[quoted text clipped - 47 lines]
> > > Thanks so much!
> > > Laurel
Graham Mayor - 06 Jun 2007 14:36 GMT
Of course it does! I wouldn't mind but I did a web page about this :(
http://www.gmayor.com/formatting_word_fields.htm

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> { MERGEFIELD «Cardholder_Number»\# x### } works just like the RIGHT
> function in Excel and displays the last 4 digits of the cardholder
[quoted text clipped - 58 lines]
>>>> Thanks so much!
>>>> Laurel