ACC97: Keyboard Does Not Respond When TreeView Control Has Focus

Last reviewed: February 6, 1998
Article ID: Q170413
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

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

You are unable to type data into a text box or combo box on a tab control that contains a TreeView control on another page. However, you are able to set the value of the text box or combo box with a macro or with Visual Basic for Applications code. This behavior only applies where the TreeView control is on a sub-form and that sub-form is on the Tab control.

NOTE: In addition to the TreeView control, the symptoms discussed within this article have also been reported when using the ListView ActiveX control.

CAUSE

The TreeView control has the focus.

RESOLUTION

If possible, in Design view, place the TreeView control directly onto the Tab control page. When the TreeView control must be on a sub-form, move the focus by clicking a control on the page that contains the TreeView control, or close and reopen the form.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Open the sample database Northwind.mdb.

  2. Create a new form not based on any table or query in Design view.

  3. On the Insert Menu, click ActiveX Control.

  4. In the ActiveX Control dialog box, select Microsoft TreeView Control and click OK.

  5. Create an unbound text box on the form.

  6. Close and save the form as TreeViewTest.

  7. Create a new form not based on any table or query in Design view.

  8. Create a tab control on the form.

  9. Click Page1 and create two unbound text boxes on this page.

  10. Click Page2.

  11. Press F11 to view the Database window. Select the TreeViewTest form and drag it onto the Page2.

  12. Switch to Form view.

  13. Click Page2 and then click the TreeView control.

  14. Click Page1.

Note that you are unable to type any data into the text boxes. However, if you click Page2 and then click the text box on this page to move the focus away from the TreeView control, you can return to the Page1 and type data into the text boxes.

REFERENCES

For more information about the tab control, search the Help Index for "tab controls, creating" and then select "What's New for Developers: Tab Control."


Additional query words: keyboard respond
Keywords : kbusage
Version : 97
Platform : WINDOWS
Hardware : x86
Issue type : kbbug
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: February 6, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.