GlenLynam
MIS
- Jul 26, 2002
- 121
Hi there,
I have 2 times from 2 queries the format is hh:mm:ss. I need to add these times together ie the times 10:00:00 and 10:00:10 would become 20:00:10. Ok i can get it so the results are hh:mm:sshh:mm:ss. I have this isn the query and feel it should work as it is how i got the durations from the data in the first place.
Total: Format(Sum(TimeValue(qryTSOut_Duration!totalcall+qrytsin_duration!totalcall)),"hh:nn:ss")
but it tells me it is to complicated and i should add some variables any ideas??
Thanks
Glen
ps. Incase it helps here is the SQL code
SELECT [SMDR In Order].Party1Name, qryTSOut_Duration.TotalCall, qryTSIn_Duration.TotalCall, Format(Sum(TimeValue([qryTSOut_Duration]![totalcall]+[qrytsin_duration]![totalcall])),"hh:nn:ss") AS Total
FROM ([SMDR In Order] INNER JOIN qryTSOut_Duration ON [SMDR In Order].Party1Name = qryTSOut_Duration.Party1Name) INNER JOIN qryTSIn_Duration ON [SMDR In Order].Party1Name = qryTSIn_Duration.Party1Name
GROUP BY [SMDR In Order].Party1Name, qryTSOut_Duration.TotalCall, qryTSIn_Duration.TotalCall
ORDER BY qryTSOut_Duration.TotalCall DESC;
I have 2 times from 2 queries the format is hh:mm:ss. I need to add these times together ie the times 10:00:00 and 10:00:10 would become 20:00:10. Ok i can get it so the results are hh:mm:sshh:mm:ss. I have this isn the query and feel it should work as it is how i got the durations from the data in the first place.
Total: Format(Sum(TimeValue(qryTSOut_Duration!totalcall+qrytsin_duration!totalcall)),"hh:nn:ss")
but it tells me it is to complicated and i should add some variables any ideas??
Thanks
Glen
ps. Incase it helps here is the SQL code
SELECT [SMDR In Order].Party1Name, qryTSOut_Duration.TotalCall, qryTSIn_Duration.TotalCall, Format(Sum(TimeValue([qryTSOut_Duration]![totalcall]+[qrytsin_duration]![totalcall])),"hh:nn:ss") AS Total
FROM ([SMDR In Order] INNER JOIN qryTSOut_Duration ON [SMDR In Order].Party1Name = qryTSOut_Duration.Party1Name) INNER JOIN qryTSIn_Duration ON [SMDR In Order].Party1Name = qryTSIn_Duration.Party1Name
GROUP BY [SMDR In Order].Party1Name, qryTSOut_Duration.TotalCall, qryTSIn_Duration.TotalCall
ORDER BY qryTSOut_Duration.TotalCall DESC;