Negative numbers with parenthesis

S

Spinbud

How do I make negative numbers in a report have parenthesis around them? With
currency it is very easy but I cannot figure out how to do it with
non-currency numbers (there is no format that is obvious)

Many thanks.
 
F

fredg

How do I make negative numbers in a report have parenthesis around them? With
currency it is very easy but I cannot figure out how to do it with
non-currency numbers (there is no format that is obvious)

Many thanks.

Set the Format property of the control on the report to:
#;(#);0;

Look up Format Property + Number and Currency datatypes for
information on why this works.
 
S

Spinbud

Thanks, this worked. Quick question, how do I get the comma when more than a
thousand, for example, (3,456) instead of (3456).

Many thanks.
 
F

fredg

Thanks, this worked. Quick question, how do I get the comma when more than a
thousand, for example, (3,456) instead of (3456).

Many thanks.

You're not limited to just #.
You could use
#,###;(#,###);0
or ....
The below will display the comma separated thousands and also always
show 2 decimals.

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

displays as
1,234.00 or (1234.00)
1,234.10 or (1,234.10)
0.25 or (0.25)
0.05 or (0.05)
0.00
etc......
 
S

Spinbud

Thank you very, very much. You have answered my question very well. I
appreciate your time.
 

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

Top