P
punking315
Are there any good tutorials or resources describing how to connect a
parameter form to a report and underlying query?
I have a report that works great with parameters in the underlying query.
However , when I trigger the parameter input form for thr report (using open
& close event) it is not passing the data from the form to the underlying
query.
I used the example in the help files of access2007.
BTW, here is my SQL of the query:
SELECT Query1.jobsite, Query1.scope, Query1.taskdate, Query1.taskname,
Sum(Query1.empTotalCost) AS SumOfempTotalCost, Sum(Query1.equipTotalCost) AS
SumOfequipTotalCost, Sum(Query1.matTotalCost) AS SumOfmatTotalCost,
[SumOfempTotalCost]+[SumOfequipTotalCost]+[SumOfmatTotalCost] AS TotalCost
FROM Query1
GROUP BY Query1.jobsite, Query1.scope, Query1.taskdate, Query1.taskname
HAVING (((Query1.jobsite)=[Forms]![parameters]![jobsite]) AND
((Query1.scope)=[Forms]![parameters]![scope]) AND ((Query1.taskdate) Between
[Forms]![parameters]![startdate] And [Forms]![parameters]![enddate])) OR
(((Query1.scope)=[Forms]![parameters]![scope]) AND ((Query1.taskdate) Between
[Forms]![parameters]![startdate] And [Forms]![parameters]![enddate]) AND
(([Forms]![parameters]![jobsite]) Is Null)) OR
(((Query1.jobsite)=[Forms]![parameters]![jobsite]) AND ((Query1.taskdate)
Between [Forms]![parameters]![startdate] And [Forms]![parameters]![enddate])
AND (([Forms]![parameters]![scope]) Is Null)) OR (((Query1.taskdate) Between
[Forms]![parameters]![startdate] And [Forms]![parameters]![enddate]) AND
(([Forms]![parameters]![jobsite]) Is Null) AND
(([Forms]![parameters]![scope]) Is Null));
thanks for any help
parameter form to a report and underlying query?
I have a report that works great with parameters in the underlying query.
However , when I trigger the parameter input form for thr report (using open
& close event) it is not passing the data from the form to the underlying
query.
I used the example in the help files of access2007.
BTW, here is my SQL of the query:
SELECT Query1.jobsite, Query1.scope, Query1.taskdate, Query1.taskname,
Sum(Query1.empTotalCost) AS SumOfempTotalCost, Sum(Query1.equipTotalCost) AS
SumOfequipTotalCost, Sum(Query1.matTotalCost) AS SumOfmatTotalCost,
[SumOfempTotalCost]+[SumOfequipTotalCost]+[SumOfmatTotalCost] AS TotalCost
FROM Query1
GROUP BY Query1.jobsite, Query1.scope, Query1.taskdate, Query1.taskname
HAVING (((Query1.jobsite)=[Forms]![parameters]![jobsite]) AND
((Query1.scope)=[Forms]![parameters]![scope]) AND ((Query1.taskdate) Between
[Forms]![parameters]![startdate] And [Forms]![parameters]![enddate])) OR
(((Query1.scope)=[Forms]![parameters]![scope]) AND ((Query1.taskdate) Between
[Forms]![parameters]![startdate] And [Forms]![parameters]![enddate]) AND
(([Forms]![parameters]![jobsite]) Is Null)) OR
(((Query1.jobsite)=[Forms]![parameters]![jobsite]) AND ((Query1.taskdate)
Between [Forms]![parameters]![startdate] And [Forms]![parameters]![enddate])
AND (([Forms]![parameters]![scope]) Is Null)) OR (((Query1.taskdate) Between
[Forms]![parameters]![startdate] And [Forms]![parameters]![enddate]) AND
(([Forms]![parameters]![jobsite]) Is Null) AND
(([Forms]![parameters]![scope]) Is Null));
thanks for any help