subReports

DS

Registered User.
Local time
Today, 21:10
Joined
Oct 5, 2000
Messages
12
Is there a way of knowing if a report is opened as a subreport (from some code within the subreport when it is open) and if so what the 'parent' control was (I need to run a query dependent on the subReports parent control)

Thanks
DS
 
Using the openEvent of the subreport test for the parent name, e.g. pName = me.parent.name
If the the report is opened as a report, i.e. not subreport, you will get an error (2452) which you can trap with error handling.
Hope this helps.
 
But doesn't the parent name return the name of the calling 'Report' and not the subreport control on the parent (i've got multiple subreport controls and i need to know which one was bound to my subReport)???

Thanks

DS
 
I would love to know the answer to this... I have the same problem which I posted this morning...
 

Users who are viewing this thread

Back
Top Bottom