Reply
 
Thread Tools Display Modes
  #1   Report Post  
Michael
 
Posts: n/a
Default Mailmerge with Excel as a database... Suppressing zero's in fields

Hello,
Could someone help me with this? I am using an excel database to populate a
form in Word. It is calculating dollar values and bringing them into Word.
I can't seem to suppress the zero's in fields that should be blank because
there is no value. I have been to G Mayor's site and tried what is there but
it does not seem to work. Any suggestion's???

Thanks in advance,
Mike
  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

What formatting switch are you using?

To show positive and negative amounts but nothing for zero amounts, use:

\# "$,0.00;-$,0.00;"

or

\# "$,0.00;($,0.00);"

To just show the positive amounts, use:

\# "$,0.00;;"



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Michael" wrote in message
...
Hello,
Could someone help me with this? I am using an excel database to populate
a
form in Word. It is calculating dollar values and bringing them into
Word.
I can't seem to suppress the zero's in fields that should be blank because
there is no value. I have been to G Mayor's site and tried what is there
but
it does not seem to work. Any suggestion's???

Thanks in advance,
Mike



  #3   Report Post  
Michael
 
Posts: n/a
Default

Thanks for your input Doug. I tried earlier what you had suggested, but
somehow I could not get it to work. What I eventually used (and works well)
was this:
{if {mergefield fieldname} 0 "{mergefield fieldname}" }

Thanks again!
Mike

"Doug Robbins" wrote:

What formatting switch are you using?

To show positive and negative amounts but nothing for zero amounts, use:

\# "$,0.00;-$,0.00;"

or

\# "$,0.00;($,0.00);"

To just show the positive amounts, use:

\# "$,0.00;;"



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Michael" wrote in message
...
Hello,
Could someone help me with this? I am using an excel database to populate
a
form in Word. It is calculating dollar values and bringing them into
Word.
I can't seem to suppress the zero's in fields that should be blank because
there is no value. I have been to G Mayor's site and tried what is there
but
it does not seem to work. Any suggestion's???

Thanks in advance,
Mike




  #4   Report Post  
Graham Mayor
 
Posts: n/a
Default

Did you update the field after adding the switch?

{Mergefield Amount \# ",$0.00;(,$0.00);" }
should work. How did you enter it?

--

Graham Mayor - Word MVP

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


Michael wrote:
Thanks for your input Doug. I tried earlier what you had suggested,
but somehow I could not get it to work. What I eventually used (and
works well) was this:
{if {mergefield fieldname} 0 "{mergefield fieldname}" }

Thanks again!
Mike

"Doug Robbins" wrote:

What formatting switch are you using?

To show positive and negative amounts but nothing for zero amounts,
use:

\# "$,0.00;-$,0.00;"

or

\# "$,0.00;($,0.00);"

To just show the positive amounts, use:

\# "$,0.00;;"



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Michael" wrote in message
...
Hello,
Could someone help me with this? I am using an excel database to
populate a
form in Word. It is calculating dollar values and bringing them
into Word.
I can't seem to suppress the zero's in fields that should be blank
because there is no value. I have been to G Mayor's site and tried
what is there but
it does not seem to work. Any suggestion's???

Thanks in advance,
Mike



  #5   Report Post  
Michael
 
Posts: n/a
Default

Hi Graham,
Looking at your switch, I do believe that I didn't use the first comma. I
am fairly new to this. I did although update the field. I am sure if I would
have input the comma I would have had better results

Mike

"Graham Mayor" wrote:

Did you update the field after adding the switch?

{Mergefield Amount \# ",$0.00;(,$0.00);" }
should work. How did you enter it?

--

Graham Mayor - Word MVP

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


Michael wrote:
Thanks for your input Doug. I tried earlier what you had suggested,
but somehow I could not get it to work. What I eventually used (and
works well) was this:
{if {mergefield fieldname} 0 "{mergefield fieldname}" }

Thanks again!
Mike

"Doug Robbins" wrote:

What formatting switch are you using?

To show positive and negative amounts but nothing for zero amounts,
use:

\# "$,0.00;-$,0.00;"

or

\# "$,0.00;($,0.00);"

To just show the positive amounts, use:

\# "$,0.00;;"



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Michael" wrote in message
...
Hello,
Could someone help me with this? I am using an excel database to
populate a
form in Word. It is calculating dollar values and bringing them
into Word.
I can't seem to suppress the zero's in fields that should be blank
because there is no value. I have been to G Mayor's site and tried
what is there but
it does not seem to work. Any suggestion's???

Thanks in advance,
Mike






  #6   Report Post  
Graham Mayor
 
Posts: n/a
Default

The first comma is the thousands separator. It will work in countries that
use a comma as such.

--

Graham Mayor - Word MVP

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


Michael wrote:
Hi Graham,
Looking at your switch, I do believe that I didn't use the first
comma. I am fairly new to this. I did although update the field. I
am sure if I would have input the comma I would have had better
results

Mike

"Graham Mayor" wrote:

Did you update the field after adding the switch?

{Mergefield Amount \# ",$0.00;(,$0.00);" }
should work. How did you enter it?

--

Graham Mayor - Word MVP

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


Michael wrote:
Thanks for your input Doug. I tried earlier what you had suggested,
but somehow I could not get it to work. What I eventually used (and
works well) was this:
{if {mergefield fieldname} 0 "{mergefield fieldname}" }

Thanks again!
Mike

"Doug Robbins" wrote:

What formatting switch are you using?

To show positive and negative amounts but nothing for zero amounts,
use:

\# "$,0.00;-$,0.00;"

or

\# "$,0.00;($,0.00);"

To just show the positive amounts, use:

\# "$,0.00;;"



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of
my services on a paid consulting basis.

Doug Robbins - Word MVP
"Michael" wrote in message
...
Hello,
Could someone help me with this? I am using an excel database to
populate a
form in Word. It is calculating dollar values and bringing them
into Word.
I can't seem to suppress the zero's in fields that should be blank
because there is no value. I have been to G Mayor's site and
tried what is there but
it does not seem to work. Any suggestion's???

Thanks in advance,
Mike



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
Mailmerge from access database where query contains "fieldname like 'text*'" Kroese, Ramon Mailmerge 2 August 4th 05 05:03 PM
WHEN MERGING EXCEL DATABASE, ERROR SAYS LOCKED FIELDS ? stevem Mailmerge 2 June 18th 05 11:23 AM
Mailmerge on word using excel data RJP Mailmerge 4 April 11th 05 08:29 AM
Mailmerge using Excel via DDE zeph317 Mailmerge 1 February 27th 05 09:08 PM
Mailmerge from EXCEL, custom format problem TonyB Mailmerge 1 December 1st 04 04:41 PM


All times are GMT +1. The time now is 02:40 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"