peterpater
Technical User
Hi:
I have a table with the following fields:
-EmpID
-Date
-Event (Project)
-TimeSpentInEvent (in sec)
I am trying to write a query which will give me a sum of TimeSpentInEvent for an event for a day per Employee. (For eg: John may be in a Project from 11am-12pm and 3pm-4pm on Aug 3rd). So the query result would give:
EmpID - John
Date - Aug 3, 2006
TotalTimeSpent - 2hrs (in seconds ofcrs)
I have tried using SUM, but I get the error "Data Type Mismatch in Criteria Expression". I am not too sure if DSum will have, as I am having errors with the syntax.
Any help is appreciated.
I have a table with the following fields:
-EmpID
-Date
-Event (Project)
-TimeSpentInEvent (in sec)
I am trying to write a query which will give me a sum of TimeSpentInEvent for an event for a day per Employee. (For eg: John may be in a Project from 11am-12pm and 3pm-4pm on Aug 3rd). So the query result would give:
EmpID - John
Date - Aug 3, 2006
TotalTimeSpent - 2hrs (in seconds ofcrs)
I have tried using SUM, but I get the error "Data Type Mismatch in Criteria Expression". I am not too sure if DSum will have, as I am having errors with the syntax.
Any help is appreciated.