Hi, Stefan.
I have what I think is a similar problem. I have a subreport with the record
source:
SELECT tblProfilesRevisions.txtProfileID,
tblProfilesRevisionsProfiles.txtProfileID,
tblProfilesRevisions.EffectiveDate, tblProfilesRevisions.IssueNumber,
tblProfilesRevisions.Revision, tblProfilesRevisions.Status
FROM tblProfilesRevisions LEFT JOIN tblProfilesRevisionsProfiles ON
tblProfilesRevisions.numProfilesRevisionsID =
tblProfilesRevisionsProfiles.numProfilesRevisionsID
WHERE (((tblProfilesRevisions.Status)="Approved"))
ORDER BY tblProfilesRevisions.EffectiveDate DESC;
This returns the desired data.
My challenge is setting the Child/Master links in the main report. The main
report queries the field txtProfileID which needs to be the Master Link
however this leaves me with two Child Links:
tblProfilesRevisions.txtProfileID
tblProfilesRevisionsProfiles.txtProfileID
I've tried linking these in the main report however when both are made as
Child Links then the subreport returns null.
Can I make both Child Links? If so how can I do this? The solutions
discussed in this particular thread area bit beyond me and I don't think they
necessarily are feasible for my particular challenge.
Thanks!
--
www.Marzetti.com
Stefan Hoffmann said:
hi,
I need to create a temporaly table to save the recursion, isn't it?
Yes, somehow. You need a table for your report. I called it temporary,
because the data in it is redundantly stored and only valid for the
actual printing process.
So it is not quite correct to call it temporary as i would create a
persistent table.
And I
need to use the "OnLoad" event of the report to create the recursion to get
the order of the companies. Yes.
Does the report need to be dynamic?
No. Just sort the table by [ORDERBY]. You may group it on the report by
the same field, if you have some dependend data or sub-reports.
mfG
--> stefan <--