i am trying to hide a detail record using the following sub
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If (Me.name = ".") Then
Me.Detail.Visible = False
Else
Me.Detail.Visible = True
End If
End Sub
but it is not working, i always get all the detail records as if there is no sub.. is there anything wrong with my code?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If (Me.name = ".") Then
Me.Detail.Visible = False
Else
Me.Detail.Visible = True
End If
End Sub
but it is not working, i always get all the detail records as if there is no sub.. is there anything wrong with my code?