Microsoft Knowledge Base Email Alertz

(209222) - A text box control does not display text in the color that you specified. Instead, the text is displayed as if you had not specified any color.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 209222 - Last Review: June 24, 2004 - Revision: 1.0

ACC2000: Formatted Colors Do Not Appear in Text

This article was previously published under Q209222
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

On This Page

SYMPTOMS

A text box control does not display text in the color that you specified. Instead, the text is displayed as if you had not specified any color.

CAUSE

If you specify a color without a format in the Format property for a text box, no color will be displayed.

RESOLUTION

Use conditional formatting to change the colors of text in a text box control. To do so, follow these steps:
  1. Open the form in Design view.
  2. Select the control that you want to change.
  3. On the Format menu, click Conditional Formatting.
  4. Set the conditions that you want.

    For example, set Condition 1 as Field Value is greater than 0 and set Font/Fore Color to Red. Click Add, and then set Condition 2 as Field Value less than or equal to 0 and set Font/Fore Color to Yellow. Click OK.
  5. Save and close the form.
  6. Open the form in Form view. Note that the values are formatted based on the conditions set in step 4.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb and open the Orders Subform form in Design view.
  2. Change the Format property of the Discount text box as follows:
    Format: [Red];;[Yellow]
  3. Save and close the form.
  4. Open the Orders form in Form view. Note that the Discount field is not displayed in color.
NOTE: To return the Orders subform back to where it was, open the form in Design View and change the Format property of the Discount text box control back to Percent by selecting Percent from the combo box.

REFERENCES

For more information about conditional formatting, click Microsoft Access Help on the Help menu, type conditional formatting in a text box or other control on a form or report in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

APPLIES TO
  • Microsoft Access 2000 Standard Edition
Keywords: 
kbprb KB209222
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate