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 / January 2007

Tip: Looking for answers? Try searching our database.

Length of text in a field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Graham - 26 Jan 2007 03:00 GMT
How do I determine the length (or number of characters) of a field?

I want to use something like:

{ IF { = LENGTH( { long_description } ) } > 40
  { short_description } { long_description } }

except that there doesn't seem to be a LENGTH function.

Or I want to be able to use { NUMCHARS } for a small part of text, not the
complete document.

Is there a function? Or a workaround?

Thanks
macropod - 26 Jan 2007 03:16 GMT
Hi Graham,

Try:
{IF{long_description}= "?????????????????????????????????????????*"
{long_description} {short_description}}

Cheers

Signature

macropod
[MVP - Microsoft Word]

| How do I determine the length (or number of characters) of a field?
|
[quoted text clipped - 11 lines]
|
| Thanks
Graham - 26 Jan 2007 03:27 GMT
Thanks. Nice workaround.

> Hi Graham,
>
[quoted text clipped - 19 lines]
> |
> | Thanks
Graham - 26 Jan 2007 04:11 GMT
And it works well. 41 question marks and an asterisk.
I'm glad I'm not checking a paragraph length.

I put short_description before long_description so it uses the short
description if the long description is too long for my table cell.

Thanks a lot.

> Thanks. Nice workaround.
>
[quoted text clipped - 21 lines]
> > |
> > | Thanks
 
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.