D
Duncs
I'm having difficulty in understanding times (although I've used them
many times before) and getting the results in a query.
Here's what I have. I have a db of accounts that have been worked by
agents. What I want to do, is total up the number of accounts worked
by each agent, and then sum up the time taken to work all accounts.
So, from the following:
Worked_By Date_Started Date_Completed
barikp 02/11/2009 06:20:16 02/11/2009 07:39:17
barikp 02/11/2009 07:39:31 02/11/2009 08:01:44
barikp 04/11/2009 05:17:32
barikp 09/11/2009 09:08:52 09/11/2009 09:35:11
barikp 09/11/2009 09:35:16 09/11/2009 10:09:40
barikp 09/11/2009 10:09:44
So, for this agent I am only interested in four entries, those with
the Date Completed field filled in. Doing this the old-fashioned way,
I would get:
Date_Started Date_Completed Duration
02/11/2009 06:20 02/11/2009 07:39 01:19
02/11/2009 07:39 02/11/2009 08:01 00:22
09/11/2009 09:08 09/11/2009 09:35 00:26
09/11/2009 09:35 09/11/2009 10:09 00:34
Giving a total of 02:41 to work.
What I now have a problem with is totalling up a large number of
accounts. One agent has taken a total of 25 hours and 31 minutes to
work accounts. In Access this shows as 1.063738426, which I can
understand is the way Access displays its time values. What I need to
do is, display this hh:mm in the results of a query. I've tried using
the format function, but it doesn't seem to work.
Anyone help?
Many TIA
Duncs
many times before) and getting the results in a query.
Here's what I have. I have a db of accounts that have been worked by
agents. What I want to do, is total up the number of accounts worked
by each agent, and then sum up the time taken to work all accounts.
So, from the following:
Worked_By Date_Started Date_Completed
barikp 02/11/2009 06:20:16 02/11/2009 07:39:17
barikp 02/11/2009 07:39:31 02/11/2009 08:01:44
barikp 04/11/2009 05:17:32
barikp 09/11/2009 09:08:52 09/11/2009 09:35:11
barikp 09/11/2009 09:35:16 09/11/2009 10:09:40
barikp 09/11/2009 10:09:44
So, for this agent I am only interested in four entries, those with
the Date Completed field filled in. Doing this the old-fashioned way,
I would get:
Date_Started Date_Completed Duration
02/11/2009 06:20 02/11/2009 07:39 01:19
02/11/2009 07:39 02/11/2009 08:01 00:22
09/11/2009 09:08 09/11/2009 09:35 00:26
09/11/2009 09:35 09/11/2009 10:09 00:34
Giving a total of 02:41 to work.
What I now have a problem with is totalling up a large number of
accounts. One agent has taken a total of 25 hours and 31 minutes to
work accounts. In Access this shows as 1.063738426, which I can
understand is the way Access displays its time values. What I need to
do is, display this hh:mm in the results of a query. I've tried using
the format function, but it doesn't seem to work.
Anyone help?
Many TIA
Duncs