J
JZ
I posted this a couple of days ago and we were unable to resolve the
issue. Anyone else want to give it a try?
My query calculates the percent of hours worked on a project compared
to total hours worked. Here are the relevant fields:
Field: HoursWorked
Table: MainProjectTable
Total: Sum
Field: SumofHoursWorked
Table: qryTtlHrs
Fieldercent: [SumOfHoursWorked1]/qryTtlHrs!SumOfHoursWorked
When I run the query I'm asked to enter parameter value for
[SumOfHoursWorked1] even though the criteria row is empty for all of
these fields. I hit OK and the query runs perfectly. How do I get rid
of the Enter Parameter Message Box? Any help would be much
appreciated. Thanks in advance.
Here's the SQL:
SELECT DISTINCTROW ProjectList.[Primary Key],
MainProjectTable.ProjectID, ProjectList.AssignedEngineer,
Sum(MainProjectTable.HoursWorked) AS SumOfHoursWorked1,
qryTtlHrs.SumOfHoursWorked,
[SumOfHoursWorked1]/qryTtlHrs!SumOfHoursWorked AS [Percent]
FROM (qryTtlHrs INNER JOIN ProjectList ON
qryTtlHrs.EmployeeName=ProjectList.AssignedEngineer) INNER JOIN
MainProjectTable ON ProjectList.[Primary
Key]=MainProjectTable.ProjectID
GROUP BY ProjectList.[Primary Key], MainProjectTable.ProjectID,
ProjectList.AssignedEngineer, qryTtlHrs.SumOfHoursWorked,
[SumOfHoursWorked1]/qryTtlHrs!SumOfHoursWorked,
MainProjectTable.EmployeeName
HAVING (((MainProjectTable.EmployeeName)=[AssignedEngineer]));
-JZ
issue. Anyone else want to give it a try?
My query calculates the percent of hours worked on a project compared
to total hours worked. Here are the relevant fields:
Field: HoursWorked
Table: MainProjectTable
Total: Sum
Field: SumofHoursWorked
Table: qryTtlHrs
Fieldercent: [SumOfHoursWorked1]/qryTtlHrs!SumOfHoursWorked
When I run the query I'm asked to enter parameter value for
[SumOfHoursWorked1] even though the criteria row is empty for all of
these fields. I hit OK and the query runs perfectly. How do I get rid
of the Enter Parameter Message Box? Any help would be much
appreciated. Thanks in advance.
Here's the SQL:
SELECT DISTINCTROW ProjectList.[Primary Key],
MainProjectTable.ProjectID, ProjectList.AssignedEngineer,
Sum(MainProjectTable.HoursWorked) AS SumOfHoursWorked1,
qryTtlHrs.SumOfHoursWorked,
[SumOfHoursWorked1]/qryTtlHrs!SumOfHoursWorked AS [Percent]
FROM (qryTtlHrs INNER JOIN ProjectList ON
qryTtlHrs.EmployeeName=ProjectList.AssignedEngineer) INNER JOIN
MainProjectTable ON ProjectList.[Primary
Key]=MainProjectTable.ProjectID
GROUP BY ProjectList.[Primary Key], MainProjectTable.ProjectID,
ProjectList.AssignedEngineer, qryTtlHrs.SumOfHoursWorked,
[SumOfHoursWorked1]/qryTtlHrs!SumOfHoursWorked,
MainProjectTable.EmployeeName
HAVING (((MainProjectTable.EmployeeName)=[AssignedEngineer]));
-JZ