Hi all,
I've just started a new job and one of the things they have got me doing involves getting some extra reports out of some access databases they have for the phone system. I've managed OK so far but I'm stuck on regarding phone diverts.
Basic jist is, when reception is unmanned they put the phone on divert and when they come back they take it off again. Simple and this info is recorded in the log file which is pulled into access each night.
The problem is all of the information is kept in a single table which I run a query on to get the info to look like below. The info is exactly as it is in the table, just that I have limited it to the reception user and where the func is like *54* or *55*:-
Date Time User Func
03/05/2005 11:40:00 Reception *54*200#
03/05/2005 11:47:00 Reception *55*200#
04/05/2005 11:35:00 Reception *55*200#
04/05/2005 11:40:00 Reception *54*200#
04/05/2005 11:59:00 Reception *55*200#
05/05/2005 09:57:00 Reception *54*200#
05/05/2005 10:08:00 Reception *55*200#
05/05/2005 12:10:00 Reception *54*200#
05/05/2005 12:17:00 Reception *55*200#
05/05/2005 12:19:00 Reception *55*200#
The FUNC *54* means put on divert and *55* is off divert. What I need to figure out is the time between each of *54* and *55* and total them for all the data in the table (we have a table for each month). The problem I can see here is that occasionally the receptionist will put in the *55* first which doesn't mean anything so this bit would need to be ignored as only bits where its a *54* followed by a *55*.
Hope this is self explaintory and that someone is able to help. I have attached a CSV fle on the table so you can have a play with it if you can help.
Thanks in advance!
Regards,
Andy Roberts
I've just started a new job and one of the things they have got me doing involves getting some extra reports out of some access databases they have for the phone system. I've managed OK so far but I'm stuck on regarding phone diverts.
Basic jist is, when reception is unmanned they put the phone on divert and when they come back they take it off again. Simple and this info is recorded in the log file which is pulled into access each night.
The problem is all of the information is kept in a single table which I run a query on to get the info to look like below. The info is exactly as it is in the table, just that I have limited it to the reception user and where the func is like *54* or *55*:-
Date Time User Func
03/05/2005 11:40:00 Reception *54*200#
03/05/2005 11:47:00 Reception *55*200#
04/05/2005 11:35:00 Reception *55*200#
04/05/2005 11:40:00 Reception *54*200#
04/05/2005 11:59:00 Reception *55*200#
05/05/2005 09:57:00 Reception *54*200#
05/05/2005 10:08:00 Reception *55*200#
05/05/2005 12:10:00 Reception *54*200#
05/05/2005 12:17:00 Reception *55*200#
05/05/2005 12:19:00 Reception *55*200#
The FUNC *54* means put on divert and *55* is off divert. What I need to figure out is the time between each of *54* and *55* and total them for all the data in the table (we have a table for each month). The problem I can see here is that occasionally the receptionist will put in the *55* first which doesn't mean anything so this bit would need to be ignored as only bits where its a *54* followed by a *55*.
Hope this is self explaintory and that someone is able to help. I have attached a CSV fle on the table so you can have a play with it if you can help.
Thanks in advance!
Regards,
Andy Roberts
Attachments
Last edited: