ToggleButton.HideDuplicates Property (Access)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ToggleButton.HideDuplicates Property (Access)

You can use the HideDuplicates property to hide a control on a report when its value is the same as in the preceding record. Read/write Boolean.

expression .HideDuplicates

expression A variable that represents a ToggleButton object.

The HideDuplicates property applies only to controls (check box, combo box, list box, option button, option group, text box, toggle button) on a report.

The HideDuplicates property uses the following settings.




If the value of a control or the data it contains is the same as in the preceding record, the control is hidden.


(Default) The control is visible regardless of the value in the preceding record.

The DefaultValue property doesn't apply to check box, option button, or toggle buttoncontrols when they are in an option group. It does however apply to the option group itself.

You can set the HideDuplicates property only in report Design view.

You can use the HideDuplicates property to create a grouped report by using only the detail section rather than a group header and the detail section.

The following example returns the HideDuplicates property setting for the CategoryName text box and assigns the value to the intCurVal variable.

Dim intCurVal As Integer 
intCurVal = Me!CategoryName.HideDuplicates
© 2015 Microsoft