In our department i am in charge of putting together forms. We use a document
management system (DMS) that incorporates Word as our database's word
processer over the old dinosaur of a processor we used to have.

Anywhoo.... we use bookmarks in incorporate certain bits of info from our
database into documents (client's first names, last names, case numbers, etc.)

The following is what I use to delete leading zeros from a case number
bookmark:
the bookmark in this example is coded as CASNMI.

{=ABS ([CASNMI]) \# "###0" \*MERGEFORMAT}

The result of this coding within the document is a number like 44565 instead
of 00044565. It cuts off the leading zeros, resulting in a neater looking
document.

Okay, this leads me to the question that I have now. What coding do I use
to get the bookmark for the middle name to truncate it to just the first
middle initial.

So that instead of inserting the middle name as "Smith", my result would
just be "S".

No macros please, as they do not translate into the use of our DMS program.

Re: Bookmark truncation help by macropod

macropod
Fri Oct 15 03:29:37 CDT 2004

Hi,

While you can use field maths to delete leading zeros ({={[CASNMI]}} would
probably do), Word fields lack any of the string manipulation functions that
you'd need to manipulate text the way you want.

Cheers


"erniewyles@hotmail.com" <erniewyleshotmailcom@discussions.microsoft.com>
wrote in message news:5DB01EEA-E4C2-4AFA-84E8-92ACCA738D0B@microsoft.com...
> In our department i am in charge of putting together forms. We use a
document
> management system (DMS) that incorporates Word as our database's word
> processer over the old dinosaur of a processor we used to have.
>
> Anywhoo.... we use bookmarks in incorporate certain bits of info from our
> database into documents (client's first names, last names, case numbers,
etc.)
>
> The following is what I use to delete leading zeros from a case number
> bookmark:
> the bookmark in this example is coded as CASNMI.
>
> {=ABS ([CASNMI]) \# "###0" \*MERGEFORMAT}
>
> The result of this coding within the document is a number like 44565
instead
> of 00044565. It cuts off the leading zeros, resulting in a neater looking
> document.
>
> Okay, this leads me to the question that I have now. What coding do I use
> to get the bookmark for the middle name to truncate it to just the first
> middle initial.
>
> So that instead of inserting the middle name as "Smith", my result would
> just be "S".
>
> No macros please, as they do not translate into the use of our DMS
program.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.736 / Virus Database: 490 - Release Date: 9/08/2004