kbsudhir
07-23-2009, 01:52 PM
Hi All,
I have query here which substract two colums & give data in another.
SELECT Team.Names, TimeCapture.Date, TimeCapture.BreakStartTime, TimeCapture.BreakEndTime, Format(TimeCapture!BreakEndTime-TimeCapture!BreakStartTime,"HH:MM:SS") AS [Break Duration]
FROM TimeCapture INNER JOIN Team ON TimeCapture.UserID = Team.UserID;
Both BreakEndTime & BreakStartTime captures the break start timings in "Date/Time" format of the access I am making sure that only time is update
in HH:MM:SS AM/PM" format.
I named the above query as "BreakDuration_query"
Now, I want to create a query to sum the Break Duration as per the names.
For this I created the below query
SELECT BreakDuration_query.Names, Sum(BreakDuration_query.[Break Duration]) AS [SumOfBreak Duration]
FROM BreakDuration_query
WHERE (((BreakDuration_query.Date)=Now()))
GROUP BY BreakDuration_query.Names;
But I am not getting any data in the query results.
Please guide on where I am going wrong.
:banghead: :banghead: :banghead: :banghead:
Regards
Sudhir
I have query here which substract two colums & give data in another.
SELECT Team.Names, TimeCapture.Date, TimeCapture.BreakStartTime, TimeCapture.BreakEndTime, Format(TimeCapture!BreakEndTime-TimeCapture!BreakStartTime,"HH:MM:SS") AS [Break Duration]
FROM TimeCapture INNER JOIN Team ON TimeCapture.UserID = Team.UserID;
Both BreakEndTime & BreakStartTime captures the break start timings in "Date/Time" format of the access I am making sure that only time is update
in HH:MM:SS AM/PM" format.
I named the above query as "BreakDuration_query"
Now, I want to create a query to sum the Break Duration as per the names.
For this I created the below query
SELECT BreakDuration_query.Names, Sum(BreakDuration_query.[Break Duration]) AS [SumOfBreak Duration]
FROM BreakDuration_query
WHERE (((BreakDuration_query.Date)=Now()))
GROUP BY BreakDuration_query.Names;
But I am not getting any data in the query results.
Please guide on where I am going wrong.
:banghead: :banghead: :banghead: :banghead:
Regards
Sudhir