ACC: Text Box Formatted as Currency Has a Space on the Right

Last reviewed: May 28, 1997
Article ID: Q109314
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

A text box with a currency format on a form or report displays data with an extra space at the right end of the value.

CAUSE

The space at the right end of the value is required for a closing parenthesis for negative values. The space keeps the decimal point aligned for positive and negative values.

RESOLUTION

Change the text box's Format property to a custom format or to a fixed format with two decimal places.

For example, if you change the control's Format property to $#,##0.00, values in the control will be displayed without the space on the right end. Negative values will be displayed as -$nnn.nn, not as ($nnn.nn).

STATUS

This behavior is by design.

MORE INFORMATION

If you format some text boxes on a form with a currency format and others with a custom format, you may have trouble aligning columns of figures. For example, if you format totals in a report's footer section with a currency format, but use a custom format, or no format, on the text boxes above the footer, the columns may not be automatically aligned.

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x or 2.0).

  2. Open the Invoice report in Design view.

  3. Preview the report. Note that the Subtotal, Freight, and Total columns are correctly aligned.

  4. View the report in Design view.

  5. Select the Freight text box and change its Format property to $#,##0.00.

  6. Preview the report again. Note that Freight column is not aligned correctly.

  7. Close the report without saving the changes.

REFERENCES

For more information about formatting a field, search the Help Index for "Format," and then "Format Property" or ask the Microsoft Access 97 Office Assistant.


Keywords : kbusage RptLayou
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.