Microsoft KB Archive/106291

From BetaArchive Wiki

PRA: User-Defined Formatting Symbols Erase Characters

Article ID: Q106291
Creation Date: 04-NOV-1993
Revision Date: 19-SEP-1996 The information in this article applies to:

  • Microsoft Access versions 1.0 and 1.1

SYMPTOMS


When you use the "!" formatting symbol in your user-defined formats, it erases the formatting in the third and fourth positions. For example, if you have a user-defined format such as

   #;#;0;"None"

and you place the "!" formatting symbol at the beginning of the user-defined format, you get:

   !#;#

RESOLUTION

To work around this problem, use the "*" formatting symbol at the end of the appropriate section of the user-defined format.

The "!" formatting symbol is used to force left alignment instead of right alignment. The "*" formatting symbol is used to fill available space with the character following it.

If you use "*" followed by a space (" ") you get the same results as using "!".

For example, if you have a user-defined format such as

   #;#;0;"None"

you can place an "* " formatting symbol at the end of the appropriate section of the user-defined format to get

   #* ;#;0;"None"

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.

MORE INFORMATION


Steps to Reproduce Problem


  1. Create a text box on a form.
  2. Set the format of the text box to:

          #;#;0;"None"
  3. Commit the Format property by pressing TAB.
  4. Add an exclamation point ("!") character to the front of the format property so that you have !#;#;0;"None" and then commit it by pressing TAB.

    The format changes to !#;#.

REFERENCES

For more information on formatting symbols, search for "Format/Format Property" using the Help menu.



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.

©1997 Microsoft Corporation. All rights reserved. Legal Notices.


Additional reference words: 1.00 1.10
KBCategory: kbusage
KBSubcategory: GnlFrmt