Microsoft KB Archive/170413

From BetaArchive Wiki

Article ID: 170413

Article Last Modified on 1/20/2007


  • Microsoft Access 97 Standard Edition

This article was previously published under Q170413

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 in this article have also been reported for the ListView ActiveX control.


The TreeView control has the focus.


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


Microsoft has confirmed this to be a problem in Microsoft Access 97.


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.


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: kbbug kbusage KB170413