R
RedHeadedMonster via AccessMonster.com
I have a query where I am looking at forecasted vs. actual hours charged.
Hours are forecasted by months. And charged weekly. Both are pulled into
Access from other programs.
Heres the thing. The dates are pulled in as: 2/15/2008. Since I want to
look at it on a monthly basis, I've changed the format to Month Year (mmm
yyyy). When you look at the resulting query results, even with the Group by
there are still 4 entries for February, i.e., 4 entries that say Feb 2008
matching the full date. What can I do to make it see that they are all
February and I want a sum for just the month?
Heres the SQL for the current query:
SELECT DISTINCT [tblHours].Date, [tblHours].Name, [tblHours].Network, Sum(
[tblHours].Actuals) AS SumOfActuals, Sum([tblHours].Forecast) AS
SumOfForecast
FROM [tblHours]
GROUP BY [tblHours].Date, [tblHours].Name, [tblHours].Network
ORDER BY [tblHours].Name, [tblHours].Network;
Thanx
RHM
Hours are forecasted by months. And charged weekly. Both are pulled into
Access from other programs.
Heres the thing. The dates are pulled in as: 2/15/2008. Since I want to
look at it on a monthly basis, I've changed the format to Month Year (mmm
yyyy). When you look at the resulting query results, even with the Group by
there are still 4 entries for February, i.e., 4 entries that say Feb 2008
matching the full date. What can I do to make it see that they are all
February and I want a sum for just the month?
Heres the SQL for the current query:
SELECT DISTINCT [tblHours].Date, [tblHours].Name, [tblHours].Network, Sum(
[tblHours].Actuals) AS SumOfActuals, Sum([tblHours].Forecast) AS
SumOfForecast
FROM [tblHours]
GROUP BY [tblHours].Date, [tblHours].Name, [tblHours].Network
ORDER BY [tblHours].Name, [tblHours].Network;
Thanx
RHM