Hide Parent Detail.

skea

Registered User.
Local time
Today, 21:59
Joined
Dec 21, 2004
Messages
342
I have a sub Report in the detail section of its parent. I need to hide the detail part of the parent if the subReport corresponding to the record has no data.
Here is what iam trying to do but failing, any ideas...
Code:
Private Sub Report_NoData(Cancel As Integer)
Me.Parent.Section(0).Visible = False
End Sub
 
I would try to exclude the parent record from the data that the report is based on rather than manipulate the report.
 
Thanks neileg.
The problem is that the two reports have different record sources although linked by an ID.
 
If you do an inner join on the two record sources on the ID, it will only return the parents that have children.
 

Users who are viewing this thread

Back
Top Bottom