Bookmark truncation help

E

erniewyles

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.
 
M

macropod

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


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top