Hi guys,
I have a really basic table of team players (ID, PlayerName). I have built a report with tbl_Players.PlayerName in the detail section. When I run the report I get the full list - as expected.
Now, I add the following code to the OnFormat property of the detail section:
I would expect this to supress all detail records - correct? It doesn't, all detail records are shown.
Before you ask WHY on Earth I'd want to do this it is a test as I have tried to conditionally supress the detail section in another report but that's not working either. So I tried it on a really basic one...
Any ideas? I am using Access 2007.
Cheers,
Jason
I have a really basic table of team players (ID, PlayerName). I have built a report with tbl_Players.PlayerName in the detail section. When I run the report I get the full list - as expected.
Now, I add the following code to the OnFormat property of the detail section:
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Visible = False
End Sub
I would expect this to supress all detail records - correct? It doesn't, all detail records are shown.
Before you ask WHY on Earth I'd want to do this it is a test as I have tried to conditionally supress the detail section in another report but that's not working either. So I tried it on a really basic one...
Any ideas? I am using Access 2007.
Cheers,
Jason