Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / December 2005

Tip: Looking for answers? Try searching our database.

check to see if field is #

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raj - 30 Nov 2005 16:30 GMT
i need to check to see if a field is numeric. if it is apply the mask
otherwise just leave it as it is

i have this

{ if { MERGEFIELD "TEST" } < "A" "{MERGEFIELD "BLAH" "mask=$#,##0"}
"{MERGEFIELD "BLAH"} }

please help
Doug Robbins - Word MVP - 30 Nov 2005 20:53 GMT
A formatting switch of the type \# "$#,##0" will be ignored if the field is
not numeric.

See "Formatting Word fields with switches" on fellow MVP Graham Mayor's
website at

http://www.gmayor.com/formatting_word_fields.htm

Signature

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

>i need to check to see if a field is numeric. if it is apply the mask
>otherwise just leave it as it is
[quoted text clipped - 5 lines]
>
> please help
raj - 30 Nov 2005 21:53 GMT
i am sorry but it does not
it acutally gives syntax error :(

>A formatting switch of the type \# "$#,##0" will be ignored if the field is
>not numeric.
[quoted text clipped - 13 lines]
>>
>> please help
Doug Robbins - Word MVP - 01 Dec 2005 04:54 GMT
Not for me it doesn't.  What are the contents of the field that causes the
problem and exactly what is the construction of the field that you are
using - that is what is contained inside the field delimiters {    } that
are display when you select the field and Press Shift + F9 or use Alt + F9
to display all of the field codes.

Signature

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

>i am sorry but it does not
> it acutally gives syntax error :(
[quoted text clipped - 16 lines]
>>>
>>> please help
Graham Mayor - 01 Dec 2005 07:06 GMT
Are you inserting the correct switch or your own made up switch from the
original post?

{Mergefield blah \# "$,0"}

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

> i am sorry but it does not
> it acutally gives syntax error :(
[quoted text clipped - 24 lines]
>>>
>>> please help
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.