G
Guest
Here is the SQL code that I have to collect total overtime hours for a
specific time period. Right now, the query asks me for a date worked.
However, I would like it to ask me a section, and by entering the section
name, a query displays the total overtime hours for that section for a
specific date.
Thanks in advance.
SELECT WatchResults.Section, Sum(WatchResults.[Overtime Hours]) AS
[SumOfOvertime Hours]
FROM WatchResults
WHERE (((Year([DateWorked]))=2004))
GROUP BY WatchResults.Section;
specific time period. Right now, the query asks me for a date worked.
However, I would like it to ask me a section, and by entering the section
name, a query displays the total overtime hours for that section for a
specific date.
Thanks in advance.
SELECT WatchResults.Section, Sum(WatchResults.[Overtime Hours]) AS
[SumOfOvertime Hours]
FROM WatchResults
WHERE (((Year([DateWorked]))=2004))
GROUP BY WatchResults.Section;