G
Guest
Very new to Access and all that goes with it. Please be gentle.
Have created a database that has several tables, queries and reports. One of
the tables has a field (duration) that shows in seconds on how long a user
accesses my system.
Created a query that groups the user and sums the duration field. Works great.
Now I would like to convert the summed duration field, that shows total
seconds into the hh:nn:ss format. Then to show only users with more than 300
seconds of use. Then to sort by total duration in decending order.
Should this be done in the query? Or a report?
A copy of the SQL statement from the Query follows.
SELECT DISTINCTROW [TalkGroups].[Talk_Group_Name],
Sum([SystemFiles].[duration]) AS [Sum Of duration]
FROM TalkGroups INNER JOIN SystemFiles ON
[TalkGroups].[ID_Number]=[SystemFiles].[group 1]
GROUP BY [TalkGroups].[Talk_Group_Name]
HAVING (((Sum(SystemFiles.duration))>300))
ORDER BY Sum([SystemFiles].[duration]) DESC;
Any help would be appreciated.
Wes
I reserve the right to ask 1000's of other newbie questions.
Have created a database that has several tables, queries and reports. One of
the tables has a field (duration) that shows in seconds on how long a user
accesses my system.
Created a query that groups the user and sums the duration field. Works great.
Now I would like to convert the summed duration field, that shows total
seconds into the hh:nn:ss format. Then to show only users with more than 300
seconds of use. Then to sort by total duration in decending order.
Should this be done in the query? Or a report?
A copy of the SQL statement from the Query follows.
SELECT DISTINCTROW [TalkGroups].[Talk_Group_Name],
Sum([SystemFiles].[duration]) AS [Sum Of duration]
FROM TalkGroups INNER JOIN SystemFiles ON
[TalkGroups].[ID_Number]=[SystemFiles].[group 1]
GROUP BY [TalkGroups].[Talk_Group_Name]
HAVING (((Sum(SystemFiles.duration))>300))
ORDER BY Sum([SystemFiles].[duration]) DESC;
Any help would be appreciated.
Wes
I reserve the right to ask 1000's of other newbie questions.