Reply
 
Thread Tools Display Modes
  #1   Report Post  
Anthony Dowd
 
Posts: n/a
Default Two switches in the one field

Hi

How do I include a second switch in a field that already contains a switch?

I want to create a field switch which controls the number of digits on the
right hand side of the decimal point and which also suppresses zero dollar
values

I know the following switch works to control the number of digits on the
right hand side of the decimal point...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)"}

....but when I add a second switch (i.e., \#"$0.00;;") to the above field to
give the following field...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)" \#"$0.00;;"}

....I get the following error:

"Error! Too many picture switches defined."

Any suggestions would be greatly appreciated.

Thanks
Anthony


  #2   Report Post  
Stefan Blom
 
Posts: n/a
Default

If you don't want the number zero to be displayed, use # instead of 0
before the decimal point (in the field code):

{ MERGEFIELD "item_No1" \# "$#.00;($#.00)" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi

How do I include a second switch in a field that already contains a

switch?

I want to create a field switch which controls the number of digits

on the
right hand side of the decimal point and which also suppresses zero

dollar
values

I know the following switch works to control the number of digits on

the
right hand side of the decimal point...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)"}

...but when I add a second switch (i.e., \#"$0.00;;") to the above

field to
give the following field...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)" \#"$0.00;;"}

...I get the following error:

"Error! Too many picture switches defined."

Any suggestions would be greatly appreciated.

Thanks
Anthony





  #3   Report Post  
Anthony Dowd
 
Posts: n/a
Default

Hi Stefan

First of all thanks for your response and I apologise for not making myself
clear.

If there is a zero value in the field I want to leave the field completely
blank. Any suggestions?

Thanks
Anthony
"Stefan Blom" wrote in message
...
If you don't want the number zero to be displayed, use # instead of 0
before the decimal point (in the field code):

{ MERGEFIELD "item_No1" \# "$#.00;($#.00)" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi

How do I include a second switch in a field that already contains a

switch?

I want to create a field switch which controls the number of digits

on the
right hand side of the decimal point and which also suppresses zero

dollar
values

I know the following switch works to control the number of digits on

the
right hand side of the decimal point...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)"}

...but when I add a second switch (i.e., \#"$0.00;;") to the above

field to
give the following field...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)" \#"$0.00;;"}

...I get the following error:

"Error! Too many picture switches defined."

Any suggestions would be greatly appreciated.

Thanks
Anthony







  #4   Report Post  
Stefan Blom
 
Posts: n/a
Default

Try the following:

{ MERGEFIELD "item_No1" \# "$#.00;($#.00);" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi Stefan

First of all thanks for your response and I apologise for not making

myself
clear.

If there is a zero value in the field I want to leave the field

completely
blank. Any suggestions?

Thanks
Anthony
"Stefan Blom" wrote in message
...
If you don't want the number zero to be displayed, use # instead

of 0
before the decimal point (in the field code):

{ MERGEFIELD "item_No1" \# "$#.00;($#.00)" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi

How do I include a second switch in a field that already contains

a
switch?

I want to create a field switch which controls the number of

digits
on the
right hand side of the decimal point and which also suppresses

zero
dollar
values

I know the following switch works to control the number of digits

on
the
right hand side of the decimal point...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)"}

...but when I add a second switch (i.e., \#"$0.00;;") to the

above
field to
give the following field...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)" \#"$0.00;;"}

...I get the following error:

"Error! Too many picture switches defined."

Any suggestions would be greatly appreciated.

Thanks
Anthony










  #5   Report Post  
Anthony Dowd
 
Posts: n/a
Default

Works beautifully, Stefan.

Thanks heaps.

Anthony



"Stefan Blom" wrote in message
...
Try the following:

{ MERGEFIELD "item_No1" \# "$#.00;($#.00);" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi Stefan

First of all thanks for your response and I apologise for not making

myself
clear.

If there is a zero value in the field I want to leave the field

completely
blank. Any suggestions?

Thanks
Anthony
"Stefan Blom" wrote in message
...
If you don't want the number zero to be displayed, use # instead

of 0
before the decimal point (in the field code):

{ MERGEFIELD "item_No1" \# "$#.00;($#.00)" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi

How do I include a second switch in a field that already contains

a
switch?

I want to create a field switch which controls the number of

digits
on the
right hand side of the decimal point and which also suppresses

zero
dollar
values

I know the following switch works to control the number of digits

on
the
right hand side of the decimal point...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)"}

...but when I add a second switch (i.e., \#"$0.00;;") to the

above
field to
give the following field...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)" \#"$0.00;;"}

...I get the following error:

"Error! Too many picture switches defined."

Any suggestions would be greatly appreciated.

Thanks
Anthony














  #6   Report Post  
Stefan Blom
 
Posts: n/a
Default

I'm glad I could help.

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Works beautifully, Stefan.

Thanks heaps.

Anthony



"Stefan Blom" wrote in message
...
Try the following:

{ MERGEFIELD "item_No1" \# "$#.00;($#.00);" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi Stefan

First of all thanks for your response and I apologise for not

making
myself
clear.

If there is a zero value in the field I want to leave the field

completely
blank. Any suggestions?

Thanks
Anthony
"Stefan Blom" wrote in message
...
If you don't want the number zero to be displayed, use #

instead
of 0
before the decimal point (in the field code):

{ MERGEFIELD "item_No1" \# "$#.00;($#.00)" }

--
Stefan Blom
Microsoft Word MVP


"Anthony Dowd" wrote in message
...
Hi

How do I include a second switch in a field that already

contains
a
switch?

I want to create a field switch which controls the number of

digits
on the
right hand side of the decimal point and which also suppresses

zero
dollar
values

I know the following switch works to control the number of

digits
on
the
right hand side of the decimal point...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)"}

...but when I add a second switch (i.e., \#"$0.00;;") to the

above
field to
give the following field...

{MERGEFIELD "item_No1"\#"$0.00;($0.00)" \#"$0.00;;"}

...I get the following error:

"Error! Too many picture switches defined."

Any suggestions would be greatly appreciated.

Thanks
Anthony















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
DDE field doesn't update when printing after applying word 2000 sp3 OliveX Mailmerge 1 May 20th 05 12:46 PM
Enter data in 1 text form field & have multiple locations fill Lee Microsoft Word Help 1 March 16th 05 10:56 PM
filename field switches - anything besides /p? Anita Aldrich via OfficeKB.com Microsoft Word Help 1 March 3rd 05 10:14 AM
Switches for Fields MDavison Microsoft Word Help 1 January 27th 05 03:55 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM


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