Microsoft KB Archive/106291: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 13: Line 13:




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
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


<pre>  #;#;0;&quot;None&quot;
<pre>  #;#;0;"None"
</pre>
</pre>
and you place the &quot;!&quot; formatting symbol at the beginning of the user-defined format, you get:
and you place the "!" formatting symbol at the beginning of the user-defined format, you get:
<pre>  !#;#
<pre>  !#;#
</pre>
</pre>
'''RESOLUTION'''<br />
'''RESOLUTION'''<br />


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


The &quot;!&quot; formatting symbol is used to force left alignment instead of right alignment. The &quot;*&quot; formatting symbol is used to fill available space with the character following it.
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 &quot;*&quot; followed by a space (&quot; &quot;) you get the same results as using &quot;!&quot;.
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
For example, if you have a user-defined format such as


<pre>  #;#;0;&quot;None&quot;
<pre>  #;#;0;"None"
</pre>
</pre>
you can place an &quot;* &quot; formatting symbol at the end of the appropriate section of the user-defined format to get
you can place an "* " formatting symbol at the end of the appropriate section of the user-defined format to get
<pre>  #* ;#;0;&quot;None&quot;
<pre>  #* ;#;0;"None"
</pre>
</pre>
'''STATUS'''<br />
'''STATUS'''<br />
Line 48: Line 48:
<li>Create a text box on a form.</li>
<li>Create a text box on a form.</li>
<li><p>Set the format of the text box to:</p>
<li><p>Set the format of the text box to:</p>
<blockquote><pre>      #;#;0;&quot;None&quot;</pre></blockquote></li>
<blockquote><pre>      #;#;0;"None"</pre></blockquote></li>
<li>Commit the Format property by pressing TAB.</li>
<li>Commit the Format property by pressing TAB.</li>
<li><p>Add an exclamation point (&quot;!&quot;) character to the front of the format property so that you have !#;#;0;&quot;None&quot; and then commit it by pressing TAB.</p>
<li><p>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.</p>
<p>The format changes to !#;#.</p></li></ol>
<p>The format changes to !#;#.</p></li></ol>


'''REFERENCES'''<br />
'''REFERENCES'''<br />


For more information on formatting symbols, search for &quot;Format/Format Property&quot; using the Help menu.
For more information on formatting symbols, search for "Format/Format Property" using the Help menu.
|}
|}


Line 61: Line 61:
-----
-----


<blockquote>THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED &quot;AS IS&quot; 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.</blockquote>
<blockquote>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.</blockquote>
''<span>©1997 Microsoft Corporation. All rights reserved.</span> <span>Legal Notices</span>.<br />
''<span>©1997 Microsoft Corporation. All rights reserved.</span> <span>Legal Notices</span>.<br />
''
''

Latest revision as of 10:02, 20 July 2020

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