Format negative percentage

S

SHIPP

I have the following code:

format(dblTest,"0.00%")

It works fine except that with a negative number it prints -1.01%. What the
accountants want to see is (1.01%). Is there any way to get the brackets
around the number?
 
J

John Spencer

You can use the format function or the format property.

Is this in a report then use the format function of the control and set
the format property.

If in a query try
Format(dblTest,"0.00%;\(0.00%\);0.0%")

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
 
Top