Hello dear Thank you for your reply, I have a report then contain 7 group levels. I want if a field that is in groupheader7 (ThirdCenterCode) was null, it’s group header ( groupheader7) visible property be set to No. and it should be control for each rows. Because it my in another record, that field is not null and group header 7 should be shown. I try this code in format property of group header 7, but it not work and return the below error:
Private Sub GroupHeader7_Format(Cancel As Integer, FormatCount As Integer)
If IsNull([ThirdCenterCode]) Then
Me.GroupHeader7.Visible = False
End If
End Sub
Run-time error ‘2465’: Microsoft access can’t find the field ‘ThirdCenterCode’ referred to in your expression.
Thank you a lot With best regards Ehsan Shahidifar [email protected]