Article ID: 200595
Article Last Modified on 6/23/2005
APPLIES TO
- Microsoft Access 2000 Standard Edition
This article was previously published under Q200595
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you modify a tab control in Microsoft Access, either manually or
with Visual Basic for Applications code, if you delete the last page of
the tab control, the control itself is also removed from the form.
RESOLUTION
If you programmatically remove all pages from a tab control so that you can
rebuild them, after you remove the last page from the control, you can use
the CreateControl method to create a new tab control with two pages on it. Then you can set the properties for the new control and manipulate its pages.
For more information about the CreateControl method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type CreateControl, CreateReportControl methods in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
REFERENCES
For more information about the tab control, click Microsoft Access Help on the
Help menu, type What is a tab control in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Additional query words: prb clear
Keywords: kbdta kbprb KB200595