I would use a totals query, not DSUM() in a query.
Is the date field just the date or is it date and time? If the date field also has the time the following probably won't work.
Might need to create a column in the query that is just the date.
Maybe try:
Code:
SELECT Sum(HOBO_Weather_Station_Raw.Temp_F) AS SumOfTemp, HOBO_Weather_Station_Raw.Data_Date
FROM HOBO_Weather_Station_Raw
GROUP BY HOBO_Weather_Station_Raw.Data_Date
HAVING HOBO_Weather_Station_Raw.Data_Date >=#1/1/2016#;
Here is the query aliased (your table name is LONG!
Code:
SELECT Sum(H.Temp_F) AS SumOfTemp, H.Data_Date
FROM HOBO_Weather_Station_Raw H
GROUP BY H.Data_Date
HAVING H.Data_Date >=#1/1/2016#;
------------------------------------------
If the date and time is in the date field, try:
Code:
SELECT Sum(HOBO_Weather_Station_Raw.Temp_F) AS SumOfTemp, CDate(Int([Data_Date])) AS OnlyDate
FROM HOBO_Weather_Station_Raw
GROUP BY HOBO_Weather_Station_Raw.OnlyDate
HAVING HOBO_Weather_Station_Raw.OnlyDate >=#1/1/2016#
ORDER BY ContractDates.Data_Date;
Here is the query aliased
Code:
SELECT Sum(H.Temp_F) AS SumOfTemp, H.CDate(Int([Data_Date])) AS OnlyDate
FROM HOBO_Weather_Station_Raw H
GROUP BY H.OnlyDate
HAVING H.OnlyDate >=#1/1/2016#;
ORDER BY ContractDates.Data_Date;
Warning:
These queries are untested!!!