Hi Guys
With help from the community on this site I have been using this query with to work out our response times by issues for our help desk support database.
SELECT Count(AssetNotes.AssetNotesID) AS CountOfAssetNotesID, AssetNotesType.NoteType, AssetNotesType.ID, NZ(Sum(DateDiff("n",[issueOpenedTime],[NoteEndtime])),0) AS [Actual Time]
FROM AssetNotesType RIGHT JOIN AssetNotes ON AssetNotesType.ID = AssetNotes.NotesType
WHERE (((AssetNotes.IssueClosed) Between [forms].[ResponceTimeDates].[startdate] And [forms].[ResponceTimeDates].[enddate]))
GROUP BY AssetNotesType.NoteType, AssetNotesType.ID
HAVING (((AssetNotesType.NoteType) Not Like "General Note") AND ((NZ(Sum(DateDiff("n",[issueOpenedTime],[NoteEndtime])),0)) Is Not Null));
the above query calculates the minutes [Actual Time] between the start and finish times this is working really well.
what I am having trouble with and to be honest totally confused by is how to calculate the time it has taken during working hours Monday - Friday 9am to 5pm.
any help with this would be fantastic
many thanks in advance
Steve