ACC97: Adding Label to Tab Control Breaks Alt-Key Page Shortcuts

Last reviewed: September 29, 1997
Article ID: Q174334
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

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

When you add a label control to a page of a tab control that uses shortcut key combinations, the key combinations may stop working.

NOTE: This problem occurs only when a label has been added to one of the pages of the tab control. This does not happen when any other controls are added to the tab control.

RESOLUTION

Make sure that you add the shortcut key combinations to the tab control page caption after you have added any labels.

You can reactivate the shortcut key combinations by removing and replacing the Caption property of the tab control page. For pages that have a non- functional shortcut key combination, do the following:

  1. Open the form with a non-functional shortcut key combination in Design view.

  2. Click the page whose shortcut key is not working.

  3. On the View menu, click Properties, and then click the All tab.

  4. Select the contents of the Caption property.

  5. Press CRTL+V.

  6. Press CRTL+C.

  7. Save the form and switch to Form View.

Your shortcut keys should now work as expected.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start Microsoft Access 97 and create a new database.

  2. In the Database window, click the Forms tab, and then click New. Select Design View and click OK to create a form not based on any table or query.

  3. Add a tab control to the form.

  4. Click Page1 on the tab control.

  5. On the View menu, click Properties. Set the Caption property of Page1 to "&1" (without the quotation marks).

  6. Click Page2 on the tab control.

  7. On the View menu, click Properties. Set the Caption property of Page2 to "&2" (without the quotation marks).

    Switch the form to Form view and press ALT+1 or ATL+2 to ensure that the different pages of the tab control receive focus as expected.

  8. Switch the form to Design view.

  9. Add a label to Page2 of the Tab control and set its Caption property to "This is a test" (without the quotation marks).

    Switch the form to Form view and press ALT+1 or ATL+2. Note that the different pages of the tab control no longer receive the focus.

Keywords          : FmsOthr
Version           : WINDOWS:97
Platform          : WINDOWS
Hardware          : x86
Issue type        : kbprb
Solution Type     : kbworkaround


================================================================================


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: September 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.