ACC: Using IsVisible Property to Show or Hide Report ControlsLast reviewed: August 29, 1997Article ID: Q130366 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. Microsoft Access has an undocumented property named IsVisible for controls in a report. IsVisible takes a True or False value depending on whether or not the report control is being shown when its HideDuplicates property is set to Yes. By using code, you can take advantage of the IsVisible property to show or hide other controls in the report. NOTE: The IsVisible property can be set only from the Print event of the report section that contains the control. 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" manual. NOTE: Visual Basic for Applications (used in Microsoft Access version 7.0) is called Access Basic in version 2.0.
MORE INFORMATIONThe method below demonstrates how you can use the IsVisible property to hide a line control when a text box is hidden because it contains duplicate values. By using this method, you can create a grouped report with the group header and first detail record on the same line.
REFERENCESFor more information about the HideDuplicates property, search for "How to hide duplicates in a report," and then "HideDuplicates property" using the Answer Wizard from the Microsoft Access for Windows 95 Help menu. For more information about the Visible property, search for "Visible Property," and then "Visible Property (Application Object)" using the Microsoft Access for Windows 95 Help Index. Keywords : kbusage SynFnc RptLayou RptProp Version : 2.0 7.0 Platform : WINDOWS Hardware : x86 Issue type : kbdocerr |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |