PRA: Text Moves When Locked and Enabled Properties Set to No

    Article ID: Q119286
    Creation Date: 11-AUG-1994
    Revision Date: 19-SEP-1996

    The information in this article applies to:

    • Microsoft Access versions 1.0, 1.1, 2.0

    SYMPTOMS

    Moderate: Requires basic macro, coding, and interoperability skills.

    When a text box's Locked and Enabled properties are both set to No, the text in the text box moves to a different place in the text box.

    CAUSE

    This problem can occur if you select Ocean as your Microsoft Windows color scheme and the text in the text box is centered or right-aligned. Note that the disabled text color in the Ocean color scheme is black; the disabled text color is gray in all other color schemes.

    RESOLUTION

    There are three resolutions to this problem:

    • Set the text box's TextAlign property to Left.
    • Adjust the size of the text box to match the width of the text that is displayed in the box. The larger the text box is relative to the text displayed, the more marked the problem is.
    • Change the color for disabled text to some color other than black by using the Color utility in Control Panel.

    STATUS

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

    MORE INFORMATION

    Steps to Reproduce Problem

     1. Start Control Panel.
    
     2. Double-click the Color icon.
    
     3. Choose the Color Palette button.
    
     4. In the Color Schemes box, select Ocean, and then choose OK.
    
     5. Start Microsoft Access.
    
     6. Open the sample database NWIND.MDB.
    
     7. Create a new, blank form based on the Customers table.
    
     8. Add a text box to the form. Set the text box's ControlSource property
        to Customer ID.
    
     9. View the form in Form view. Note that the text in the text boxes
        is displayed correctly.
    
    
  • View the form in Design view. Set the text box's Enabled and Locked properties to No and its TextAlign property to Right.
  • View the form in Form view. Note that the text in the text boxes moves to the right.
  • REFERENCES

    Microsoft Access "User's Guide," version 2.0, Chapter 16, "Customizing Forms," pages 415-418


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 2.00 alignment
KBCategory: kbusage
KBSubcategory: FmsProb