Field Number Formats

  • Thread starter Thread starter JudithJubilee
  • Start date Start date
J

JudithJubilee

Hello there,

I am using the Legacy Form tools in 2007 to add Text Fields to my Invoice
Document.

I would like one of the fields to always show in brackets even though they
are typing in a positive number

I have tried:

(#,##0.00)

and

(#,##0.00);(#,##0.00)

It will show my negatives as bracketed but steadfastly refused to do the
same for the positives!!

Please help

Thanks

Judith
 
So simple it is embarrassing that I didn't think of that <LOL>.
I was going to suggest using an on exit macro to format the result of the
field, which works equally well but is not as simple :)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Hi,

There is not always a number in the box so I wanted either a blank or
bracketed.

However, I do take your point on the brackets outside the box and I did try
this but even though they were not part of the field the calculations picked
up the number as a negative even though I typed a positive number.

in the end I have gone for brackets always to be there and I've changed my
calculations

It's just a bit frustrating when I know that (#,##o) should give me all
numbers in brackets.

Thanks for your help

Judith

m field should always display within these two
 
You can conditionally add the brackets based on the content of the field.
Check the calculate on exit check box for the field and where you want the
brackets enter the following conditional fields

{ IF { Text1 } <> " *" "{ IF { Text1 } <> "" "(" "" }" "" }{ FORMTEXT }{ IF
{ Text1 } <> " *" "{ IF { Text1 } <> "" ")" "" }" "" }

{FORMTEXT} is Text1 - change Text1 to match your actual field bookmark name.
The fields will not display brackets when there is nothing in the field or
the field content is deleted by the user.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top