gusevans
asked on
MS Word 2003 Formatting merged fields
Another program ACT! has the abitlity to merge its database fields into a Word template. The resulting merged document results in all currency fields having no dollar sign nor commas.
The template field directly from the database would be -
<Additional Amt> resulting output - 15000.00
The underlying field code is -
{ DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST _Additiona lAmt_08185 9447 \*
MERGEFORMAT }
If I try to add formatting to it as in -
{ DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST _Additiona lAmt_08185 9447 \# ###.00
\* MERGEFORMAT }
It results in - <Additional Amt> outputed as plain text in the document.
I just need to get the fields formatted correctly, when pulling them into the template.
Thanks for any help.
The template field directly from the database would be -
<Additional Amt> resulting output - 15000.00
The underlying field code is -
{ DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST
MERGEFORMAT }
If I try to add formatting to it as in -
{ DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST
\* MERGEFORMAT }
It results in - <Additional Amt> outputed as plain text in the document.
I just need to get the fields formatted correctly, when pulling them into the template.
Thanks for any help.
For further information on this:
If you type the words "format fields" into word help you should see an option for Format (\*) field switch. This will give you information on how to format the data returned on a field.
If you type the words "format fields" into word help you should see an option for Format (\*) field switch. This will give you information on how to format the data returned on a field.
ASKER
GrahamSkan and wobbled,
I had done both and neither worked. I have researched all Word Help MS Knowledge Base and Communities.
When I insert the field in the template in Word using the ACT! addin and then do Alt-F9 to see the field codes, I can see { DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST _Additiona lAmt_08185 9447 \* MERGEFORMAT }. But if I edit it by adding '/# $#,###.00' and then try to use it, it just gives me the field name as text - <Additional Amt>.
I have added over 500 fields to the database and ACT! support says that because it is so large a database it may not work. They say it is a Microsoft problem not theirs.
Maybe thier is a way to use VBA and bookmarks to fix it???
I had done both and neither worked. I have researched all Word Help MS Knowledge Base and Communities.
When I insert the field in the template in Word using the ACT! addin and then do Alt-F9 to see the field codes, I can see { DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST
I have added over 500 fields to the database and ACT! support says that because it is so large a database it may not work. They say it is a Microsoft problem not theirs.
Maybe thier is a way to use VBA and bookmarks to fix it???
Perhaps we just don't understand the problem. On the face of it, you have a document variable with that long name, and a value of 15000.00.
If that is the case, then the numeric switch should be able to format it.
Can you post the document here: http://www.ee-stuff.com/ so we can see it? Tell us back here in a comment.
If that is the case, then the numeric switch should be able to format it.
Can you post the document here: http://www.ee-stuff.com/ so we can see it? Tell us back here in a comment.
ASKER
GrahamSkan,
Here is what I got from ee-stuff.com
The field in question is <Additional Amt>.
View all files for Question ID: 21884095
https://filedb.experts-exchange.com/incoming/ee-stuff/205-EE.ziphttps://filedb.experts-exchange.com/incoming/ee-stuff/206-EE2.zip
Direct link to your file
https://filedb.experts-exchange.com/incoming/ee-stuff/205-EE.zip
Here is what I got from ee-stuff.com
The field in question is <Additional Amt>.
View all files for Question ID: 21884095
https://filedb.experts-exchange.com/incoming/ee-stuff/205-EE.ziphttps://filedb.experts-exchange.com/incoming/ee-stuff/206-EE2.zip
Direct link to your file
https://filedb.experts-exchange.com/incoming/ee-stuff/205-EE.zip
ASKER
Below are links to 2 similar files using the same field in the same database, same contact record in a different template with different results ???
View all files for Question ID: 21884095
https://filedb.experts-exchange.com/incoming/ee-stuff/205-EE.ziphttps://filedb.experts-exchange.com/incoming/ee-stuff/206-EE2.zip
Direct link to your file
https://filedb.experts-exchange.com/incoming/ee-stuff/206-EE2.zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
\# $#,##0.00
So the whole thing would look like this:
{ DOCVARIABLE [ACTFIELD]TBL_CONTACT.CUST
I have just tested it with a variable of the same name, and the resulting field is displayed as $15,000.00