G
Guest
When user selects option to supress detail section of report (see example
below), I supress the labels in the group heading. I also want to remove the
space in the group heading where the labels appear. The example below works
fine, except that the line " .GroupHeader0.Height = 0.3" does not work. The
normal height for the group heading is .6" and that is what keeps printing.
Please suggest correct solution. Thank you.
Included in Report Open event.
dim a
a = MsgBox("Include detail?", vbYesNo + vbDefaultButton1, "Report
selection")
Me.Detail.Visible = a = vbYes
If Not Me.Detail.Visible Then
With Me
.Line21.Visible = False
.Line22.Visible = False
.Line23.Visible = False
.Line20.Visible = False
.lblProcedure.Visible = False
.lblTotalLabor.Visible = False
.GroupHeader0.Height = 0.3
End With
End If
below), I supress the labels in the group heading. I also want to remove the
space in the group heading where the labels appear. The example below works
fine, except that the line " .GroupHeader0.Height = 0.3" does not work. The
normal height for the group heading is .6" and that is what keeps printing.
Please suggest correct solution. Thank you.
Included in Report Open event.
dim a
a = MsgBox("Include detail?", vbYesNo + vbDefaultButton1, "Report
selection")
Me.Detail.Visible = a = vbYes
If Not Me.Detail.Visible Then
With Me
.Line21.Visible = False
.Line22.Visible = False
.Line23.Visible = False
.Line20.Visible = False
.lblProcedure.Visible = False
.lblTotalLabor.Visible = False
.GroupHeader0.Height = 0.3
End With
End If