G
Guest
Hello,
I have to queries, feeding two separate reports. One report is being used
as a sub report for the other:
Here are the queries:
SELECT Address.[EE#], Address.[Test Type], Address.[Area & Block],
Address.[Collected Date], Address.[O&G Result]
FROM Address
WHERE (((Address.[EE#]) Like "C*") AND ((Address.[Test Type]) Like "CP" Or
(Address.[Test Type]) Like "SH*" Or (Address.[Test Type]) Like "CPW") AND
((Address.[Collected Date])>=[Beginning Date] And (Address.[Collected
Date])<=[Ending Date]) AND ((Address.Company) Like "El Paso"))
ORDER BY Address.[Area & Block];
______________________________________________________________________________
SELECT Address.Company, Address.[EE#], Address.[Area & Block], Address.[Test
Type], Address.fictitiousCollectDate
FROM Address
WHERE (((Address.Company) Like "El Paso") AND ((Address.[EE#]) Like "C*")
AND ((Address.[Test Type]) Like "CWP") AND
((Address.fictitiousCollectDate)>=[Beginning Date] And
(Address.fictitiousCollectDate)<=[Ending Date]))
ORDER BY Address.[Area & Block];
The second query is used for the report being used as the subreport. I have
date parameters for [Collected Date] in the first query and the same for
[fictitiousCollectDate] in the second query. However, when I run the report,
I am being asked to enter the date range 4 times? Is there something I can
do to avoid the redundant date entries? Any help would be greatly
appreciated. Thank you.
I have to queries, feeding two separate reports. One report is being used
as a sub report for the other:
Here are the queries:
SELECT Address.[EE#], Address.[Test Type], Address.[Area & Block],
Address.[Collected Date], Address.[O&G Result]
FROM Address
WHERE (((Address.[EE#]) Like "C*") AND ((Address.[Test Type]) Like "CP" Or
(Address.[Test Type]) Like "SH*" Or (Address.[Test Type]) Like "CPW") AND
((Address.[Collected Date])>=[Beginning Date] And (Address.[Collected
Date])<=[Ending Date]) AND ((Address.Company) Like "El Paso"))
ORDER BY Address.[Area & Block];
______________________________________________________________________________
SELECT Address.Company, Address.[EE#], Address.[Area & Block], Address.[Test
Type], Address.fictitiousCollectDate
FROM Address
WHERE (((Address.Company) Like "El Paso") AND ((Address.[EE#]) Like "C*")
AND ((Address.[Test Type]) Like "CWP") AND
((Address.fictitiousCollectDate)>=[Beginning Date] And
(Address.fictitiousCollectDate)<=[Ending Date]))
ORDER BY Address.[Area & Block];
The second query is used for the report being used as the subreport. I have
date parameters for [Collected Date] in the first query and the same for
[fictitiousCollectDate] in the second query. However, when I run the report,
I am being asked to enter the date range 4 times? Is there something I can
do to avoid the redundant date entries? Any help would be greatly
appreciated. Thank you.