Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
rookie07
 
Posts: n/a
Default numeric pictu formating merge field without rounding decimal digits?

hello,

i'm not very used to ms word and have a problem concerning formating a
merge field with a numeric picture...

my datasource is a ms access db, especially a numeric (double) field
which for example contains a value like: 9957,7992. in the mail merge
this value should be displayed as a currency value like: 9.957,79 USD
(i'm from europe/austria).
so i did something like this: {MERGEFIELD MyDBField \# "#.00,00
USD;(#.00,00 USD)"} in order to format this field.

so the big probelm i have ist the output: 9.975,80 USD was rounded but
i need the original value: 9.975,79 USD.

is anyone out there who can help me with this?

THANX!!!

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Cindy M -WordMVP-
 
Posts: n/a
Default numeric pictu formating merge field without rounding decimal digits?

Hi Rookie07,

This would be better done on the Access side, using an expression in a
Query. Word doesn't provide a lot of good, strong functionality for
dealing with field content, while with Access you have a number of VB(A)
functions you can integrate into queries.

I suggest you try something like this:

Amt: (Int({AmountFieldName}*100)/100)

i'm not very used to ms word and have a problem concerning formating a
merge field with a numeric picture...

my datasource is a ms access db, especially a numeric (double) field
which for example contains a value like: 9957,7992. in the mail merge
this value should be displayed as a currency value like: 9.957,79 USD
(i'm from europe/austria).
so i did something like this: {MERGEFIELD MyDBField \# "#.00,00
USD;(#.00,00 USD)"} in order to format this field.

so the big probelm i have ist the output: 9.975,80 USD was rounded but
i need the original value: 9.975,79 USD.

is anyone out there who can help me with this?


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
rookie07
 
Posts: n/a
Default numeric pictu formating merge field without rounding decimal digits?

hello,

thank you for your reply!!!

i think i finally made it with this code:

{SET A"{MERGEFIELD "zahl"}"}{SET B "{=INT(A*100)/100}"}{B\# "#.00,00
USD;(#.00,00 USD)"}

THANX!!!

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using IF to find whether a Merge Field contains a substring Joshua Pangborn Mailmerge 12 May 11th 23 02:51 AM
numeric field picture switch Julie Microsoft Word Help 3 September 26th 05 09:39 PM
Home Phone field not getting picked up in Merge Cathleen McGuire Mailmerge 4 January 7th 05 03:13 AM
Merge Fields and Formating - How to easily repeat a pre-set merge. David Nelson Mailmerge 7 December 27th 04 09:55 PM
suppress invalid merge field word 2003 Mike Mailmerge 3 December 9th 04 11:13 AM


All times are GMT +1. The time now is 06:21 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"