ACC97: Removing All Pages from Tab Control Removes the Control (166844)
The information in this article applies to:
This article was previously published under Q166844
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you modify a Tab control in Microsoft Access 97, 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.
This article assumes that you are familiar with Visual Basic for
Applications and with creating Microsoft Access applications using the
programming tools provided with Microsoft Access. For more information
about Visual Basic for Applications, please refer to the "Building
Applications with Microsoft Access 97" manual.
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() function 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 using the CreateControl() function, search the
Help Index for "CreateControl function."
STATUS
This behavior is by design.
REFERENCES
For more information about the Tab control, search the Help Index for "tab
controls," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbprb kbProgramming kbusage KB166844 |
---|
|