Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.mac.office.word,microsoft.public.word.mailmerge.fields
John McGhie John McGhie is offline
external usenet poster
 
Posts: 10
Default Decimals appear if they are greater than ".00" - can somebodyhelp

I would suggest you need to add an IF field to test for zero.

However you don't say which version of Word, CPU type, and Macintosh OS you
are using, so I can't answer.

I suspect you're on a PC using DDE, you have landed in the Macintosh Word
group (I do wish Microsoft would fix its web interface) and you would be
better off posting in microsoft.public.word.mailmerge.fields, so I have
cross-posted for you.

Cheers

On 14/02/08 6:05 AM, in article
, "maggie"
wrote:

hello,

I have a field that combines two fields. Each of these carries two decimal
places. I read the notes here regarding the use of \#0.00 and reading in the
source as a DDE. I did that and for most of the records, I do see the decimal
places in my combined field. However, whenever the fields are equal to ".00",
I don't carry a decimal value in my combined field. What options do I have?
Here are my fields:

field 1: ${mergefield "sal1"\#0.00}
field 2: ${mergefield "sal2"\#0.00}
combinded field: ${={mergefield sal1\#0.00} +{mergefield sal2\#0.00}

Many thanks for any help.


--
Don't wait for your answer, click he
http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
+61 4 1209 1410,
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50

  #2   Report Post  
Posted to microsoft.public.mac.office.word,microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Decimals appear if they are greater than ".00" - can somebody help

I think the problem is that you need to apply the formatting switch to the
result of the = field, not to the individual components of the calculation,
i.e.

instead of

{={mergefield sal1\#0.00} +{mergefield sal2\#0.00} }

try

{={mergefield sal1} +{mergefield sal2} \#0.00 }



--
Peter Jamieson
http://tips.pjmsn.me.uk

"John McGhie" wrote in message
...
I would suggest you need to add an IF field to test for zero.

However you don't say which version of Word, CPU type, and Macintosh OS
you
are using, so I can't answer.

I suspect you're on a PC using DDE, you have landed in the Macintosh Word
group (I do wish Microsoft would fix its web interface) and you would be
better off posting in microsoft.public.word.mailmerge.fields, so I have
cross-posted for you.

Cheers

On 14/02/08 6:05 AM, in article
, "maggie"
wrote:

hello,

I have a field that combines two fields. Each of these carries two
decimal
places. I read the notes here regarding the use of \#0.00 and reading in
the
source as a DDE. I did that and for most of the records, I do see the
decimal
places in my combined field. However, whenever the fields are equal to
".00",
I don't carry a decimal value in my combined field. What options do I
have?
Here are my fields:

field 1: ${mergefield "sal1"\#0.00}
field 2: ${mergefield "sal2"\#0.00}
combinded field: ${={mergefield sal1\#0.00} +{mergefield sal2\#0.00}

Many thanks for any help.


--
Don't wait for your answer, click he
http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
+61 4 1209 1410,
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50


  #3   Report Post  
Posted to microsoft.public.mac.office.word,microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Decimals appear if they are greater than ".00" - can somebody help

Or even {={mergefield sal1} + {mergefield sal2} \# "0.00;;0" }

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Peter Jamieson wrote:
I think the problem is that you need to apply the formatting switch
to the result of the = field, not to the individual components of the
calculation, i.e.

instead of

{={mergefield sal1\#0.00} +{mergefield sal2\#0.00} }

try

{={mergefield sal1} +{mergefield sal2} \#0.00 }




"John McGhie" wrote in message
...
I would suggest you need to add an IF field to test for zero.

However you don't say which version of Word, CPU type, and Macintosh
OS you
are using, so I can't answer.

I suspect you're on a PC using DDE, you have landed in the Macintosh
Word group (I do wish Microsoft would fix its web interface) and you
would be better off posting in
microsoft.public.word.mailmerge.fields, so I have cross-posted for
you. Cheers

On 14/02/08 6:05 AM, in article
, "maggie"
wrote:

hello,

I have a field that combines two fields. Each of these carries two
decimal
places. I read the notes here regarding the use of \#0.00 and
reading in the
source as a DDE. I did that and for most of the records, I do see
the decimal
places in my combined field. However, whenever the fields are equal
to ".00",
I don't carry a decimal value in my combined field. What options do
I have?
Here are my fields:

field 1: ${mergefield "sal1"\#0.00}
field 2: ${mergefield "sal2"\#0.00}
combinded field: ${={mergefield sal1\#0.00} +{mergefield
sal2\#0.00} Many thanks for any help.


--
Don't wait for your answer, click he
http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you
to. John McGhie, Consultant Technical Writer
+61 4 1209 1410,
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50



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
email merge with multiple recipients in "To", "CC" & "BCC" Raghu Mailmerge 6 April 21st 23 12:58 PM
What does "char" "char1" "char2" mean in styles in Word? Li Microsoft Word Help 2 September 5th 07 03:22 PM
Word: 'track changes": have "changed by" rather "del." and "inser Wouter Microsoft Word Help 0 October 26th 06 10:04 AM
The "Symbol" under "Insert" disappeared and replaced by "Number" Eling Microsoft Word Help 3 September 13th 06 03:29 PM
"How do I setup tabs for leader symbols (decimals) within a table? Louie in Baghdad Tables 4 May 5th 06 12:54 PM


All times are GMT +1. The time now is 12:19 AM.

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"