L
Len
I have a report with 2 groupheaders and footers.
The groups are WHS and Class.
I am trying to use this one report as the basis for several.
Using code I am trying to group the following ways
WHS then by Class
Whs only
Class then WHS
Class only
I tried the below code but even when I set the second group to visible =
false
Next 2 lines set from a form
gstrGrpLevel0="Class"
gstrGrpLevel1="WHS"
(gfClass is the name of a footer)
Private Sub Report_Open(Cancel As Integer)
Me!lblSubTitle.Caption = gstrSubTitle
Me.gfClass.Visible = gbClass
Me.ghClass.Visible = gbClass
Me.gfWHS.Visible = gbWHS
Me.ghWHS.Visible = gbWHS
Me.Detail.Visible = gbDetail
Me.GroupLevel(0).ControlSource = gstrGrpLevel0
Me.GroupLevel(1).ControlSource = gstrGrpLevel1
end sub
I sum on the same field in both footers.
But say if I try Class only I still breaks in class every time WHS changes.
Anybody have a sample or link to more info on this subject.
Thanks
Len
The groups are WHS and Class.
I am trying to use this one report as the basis for several.
Using code I am trying to group the following ways
WHS then by Class
Whs only
Class then WHS
Class only
I tried the below code but even when I set the second group to visible =
false
Next 2 lines set from a form
gstrGrpLevel0="Class"
gstrGrpLevel1="WHS"
(gfClass is the name of a footer)
Private Sub Report_Open(Cancel As Integer)
Me!lblSubTitle.Caption = gstrSubTitle
Me.gfClass.Visible = gbClass
Me.ghClass.Visible = gbClass
Me.gfWHS.Visible = gbWHS
Me.ghWHS.Visible = gbWHS
Me.Detail.Visible = gbDetail
Me.GroupLevel(0).ControlSource = gstrGrpLevel0
Me.GroupLevel(1).ControlSource = gstrGrpLevel1
end sub
I sum on the same field in both footers.
But say if I try Class only I still breaks in class every time WHS changes.
Anybody have a sample or link to more info on this subject.
Thanks
Len