#1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Arnie[_2_] Arnie[_2_] is offline
external usenet poster
 
Posts: 4
Default Percentage

Hi folks i am using this formula to merge from Access to a table in word

{={MERGEEFIELD "L2"}*100\#"0%"}

which works fine.

Except if there is no data to work on. if it is zero then the result is 0%
thats ok
but if it is null i get !Syntax Error, * how do i supress a null.

Many thanks in advance



  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Percentage

{ IF {MERGEFIELD "L2"} "" "{={MERGEFIELD "L2"} * 100 \# "0%"}" "" }


--
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, originally posted via msnews.microsoft.com
"Arnie" wrote in message
news
Hi folks i am using this formula to merge from Access to a table in word

{={MERGEEFIELD "L2"}*100\#"0%"}

which works fine.

Except if there is no data to work on. if it is zero then the result is 0%
thats ok
but if it is null i get !Syntax Error, * how do i supress a null.

Many thanks in advance




  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Arnie[_2_] Arnie[_2_] is offline
external usenet poster
 
Posts: 4
Default Percentage

Doug hi that works fine where there is a null but now causes a Syntax error
where there is data

"Doug Robbins - Word MVP" wrote:

{ IF {MERGEFIELD "L2"} "" "{={MERGEFIELD "L2"} * 100 \# "0%"}" "" }


--
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, originally posted via msnews.microsoft.com
"Arnie" wrote in message
news
Hi folks i am using this formula to merge from Access to a table in word

{={MERGEEFIELD "L2"}*100\#"0%"}

which works fine.

Except if there is no data to work on. if it is zero then the result is 0%
thats ok
but if it is null i get !Syntax Error, * how do i supress a null.

Many thanks in advance





  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Arnie[_2_] Arnie[_2_] is offline
external usenet poster
 
Posts: 4
Default Percentage

The error this time i think refers the amount of " (!Syntax Error, " ) as the
previous error was !Syntax Error, * referring to the use of the *

if that makes sense






"Doug Robbins - Word MVP" wrote:

{ IF {MERGEFIELD "L2"} "" "{={MERGEFIELD "L2"} * 100 \# "0%"}" "" }


--
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, originally posted via msnews.microsoft.com
"Arnie" wrote in message
news
Hi folks i am using this formula to merge from Access to a table in word

{={MERGEEFIELD "L2"}*100\#"0%"}

which works fine.

Except if there is no data to work on. if it is zero then the result is 0%
thats ok
but if it is null i get !Syntax Error, * how do i supress a null.

Many thanks in advance





  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Percentage

Did you use Ctrl+F9 to insert each pair of Field Delimiters { }?

--
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, originally posted via msnews.microsoft.com
"Arnie" wrote in message
...
The error this time i think refers the amount of " (!Syntax Error, " ) as
the
previous error was !Syntax Error, * referring to the use of the *

if that makes sense






"Doug Robbins - Word MVP" wrote:

{ IF {MERGEFIELD "L2"} "" "{={MERGEFIELD "L2"} * 100 \# "0%"}" "" }


--
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, originally posted via msnews.microsoft.com
"Arnie" wrote in message
news
Hi folks i am using this formula to merge from Access to a table in
word

{={MERGEEFIELD "L2"}*100\#"0%"}

which works fine.

Except if there is no data to work on. if it is zero then the result is
0%
thats ok
but if it is null i get !Syntax Error, * how do i supress a null.

Many thanks in advance








  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Arnie[_2_] Arnie[_2_] is offline
external usenet poster
 
Posts: 4
Default Percentage

Dooooooh appoligies i had the last " "" in the wrong brackets works fine
thank you very much

Arnie

"Doug Robbins - Word MVP" wrote:

{ IF {MERGEFIELD "L2"} "" "{={MERGEFIELD "L2"} * 100 \# "0%"}" "" }


--
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, originally posted via msnews.microsoft.com
"Arnie" wrote in message
news
Hi folks i am using this formula to merge from Access to a table in word

{={MERGEEFIELD "L2"}*100\#"0%"}

which works fine.

Except if there is no data to work on. if it is zero then the result is 0%
thats ok
but if it is null i get !Syntax Error, * how do i supress a null.

Many thanks in advance





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
Percentage Chi Mailmerge 4 June 19th 09 02:58 PM
percentage Briggs Tables 3 April 27th 09 10:16 PM
Percentage in form field Purplejopeg Tables 2 October 18th 07 02:22 PM
Mail Merge Percentage Mishy Mailmerge 3 December 15th 06 05:19 PM
decimal to percentage Chris G New Users 0 April 12th 05 11:41 PM


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