K
Keith Wilby
I have the following code in a report's group footer:
Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)
If Me.txtMaterials = "" Then
Me.txtMaterials.Visible = False
Me.txtMatHead.Visible = False
End If
End Sub
The idea is that, if the Materials field is empty, the text boxes are hidden
and the controls beneath "move up" the report at run-time. However, when I
run the report only txtMaterials is hidden and txtMatHead remains visible.
If I change txtMatHead's control source to the same one as txtMaterials it
behaves as expected and is hidden. What am I missing here?
Thanks.
Keith.
Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)
If Me.txtMaterials = "" Then
Me.txtMaterials.Visible = False
Me.txtMatHead.Visible = False
End If
End Sub
The idea is that, if the Materials field is empty, the text boxes are hidden
and the controls beneath "move up" the report at run-time. However, when I
run the report only txtMaterials is hidden and txtMatHead remains visible.
If I change txtMatHead's control source to the same one as txtMaterials it
behaves as expected and is hidden. What am I missing here?
Thanks.
Keith.