M
Max Yaffe
Dear Group,
I'm having a problem with designing queries for subreports. I'm
selected a group of records for the subreport where I want to limit
the set accoring to a field specified in the main report. It looks
somewhat like the following:
SELECT Part, Revision, RevDate, Designer
FROM tblRevision
WHERE [Part] = [reports]![MAIN_REPORT].[Part]
The subreport uses this either as an SQL query or a stored query.
Works great.
I'd like to be able to use this subreport & query in other forms so I
need to do some sort of relative addressing like:
SELECT Part, Revision, RevDate, Designer
FROM tblRevision
WHERE [Part] = Parent.[Part]
But I can't get this to work. What is the correct syntax for
specifing the parent report of a sub? Is there any clean way to do
this?
Thanks,
Max
I'm having a problem with designing queries for subreports. I'm
selected a group of records for the subreport where I want to limit
the set accoring to a field specified in the main report. It looks
somewhat like the following:
SELECT Part, Revision, RevDate, Designer
FROM tblRevision
WHERE [Part] = [reports]![MAIN_REPORT].[Part]
The subreport uses this either as an SQL query or a stored query.
Works great.
I'd like to be able to use this subreport & query in other forms so I
need to do some sort of relative addressing like:
SELECT Part, Revision, RevDate, Designer
FROM tblRevision
WHERE [Part] = Parent.[Part]
But I can't get this to work. What is the correct syntax for
specifing the parent report of a sub? Is there any clean way to do
this?
Thanks,
Max