> I'll call the control that contains the sum txtSum
>
[quoted text clipped - 30 lines]
> > Please help me How I will write the code?
> > Thanks
Thanks Evi for your quick reply,
Seems code is working as im not getting any error message, but it is not
hiding my codes are as follows:
Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
Dim Ctrl As Control
For Each Ctrl In Section(1).Controls
If Me.txtCount > 1 Then
Ctrl.Visible = True
Else
Ctrl.Visible = False
End If
Next Ctrl
Me.txtCount.Visible = False
End Sub
i dont have to set Ctrl = txtSum? even than also not hidding?
Pls check
Evi - 29 Apr 2008 16:10 GMT
> > I'll call the control that contains the sum txtSum
> >
[quoted text clipped - 48 lines]
> i dont have to set Ctrl = txtSum? even than also not hidding?
> Pls check
The problem is the Section number. I should have explained this.
As a logical person, you thought that GroupFooter1 would be Section 1. If
you look up the section property in Help you will see that Section 1 is the
Report Header. GroupFooter1 is probably 6.
Evi
Wahab - 30 Apr 2008 05:31 GMT
> > > I'll call the control that contains the sum txtSum
> > >
[quoted text clipped - 62 lines]
>
> Evi
Thanks Evi, it is working perfectly.