Format negative percentage

  • Thread starter Thread starter SHIPP
  • Start date Start date
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?
 
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
'====================================================
 

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

Similar Threads


Back
Top