If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Challenging?
I have a input table as follows:
UserName Action ActionTime FirstLogOnTime LastLogOffTime User1 Logon 10:04:24 10:00 19:00 User2 Logon 11:07:04 11:00 20:00 User1 Logoff 11:45:34 10:00 19:00 User1 Logon 11:57:55 10:00 19:00 User2 Logoff 12:02:06 11:00 20:00 User2 Logon 12:17:45 11:00 20:00 User1 Logoff 18:53:34 10:00 19:00 User2 Logoff 19:52:34 11:00 20:00 .... ... .... ... ... I want a output table as follows: UserName Action ActionTime FirstLogOnTime LastLogOffTime TimeDiff User1 Logon 10:04:24 10:00 19:00 04:24 User1 Logoff 18:53:34 10:00 19:00 -06:26 User2 Logon 11:07:04 11:00 20:00 07:04 User2 Logoff 19:52:34 11:00 20:00 -07:26 Explain about tables: There are more than thousand users to log on and off in company's telephhone system based on their scheduled first logon and last logoff times. ActionTime field records actual log time including break and lunch time and other kinds of time. I want to compare User1's first logon time with actual first logon time, last logoff time with actual last logoff time only. If user1 logs on later than 3 minutes after a scheduled FirstLogOnTime or logs off earlier than 3 minutes ahead of LastLogOffTime, output table must caputure these inconsistent users only. No comparison about break time and other kinds of time are not necessary at this time. So on User2 and User3. ........ Please, help me with step by step query/programmng instructions. Really appreciate your helps!!!! Explain about table: There are more than thousand users to log on and off in company's telephhone system based on their scheduled first logon and last logoff times. ActionTimr field records actual log time including break and lunch time and other kinds of time. I want to compare User1's first logon time with actual first logon time, last logoff time with actual last logoff time. If user1 logs on later than 10 minutes after a scheduled FirstLogOnTime or logs off earlier than 10 minutes ahead of LastLogOffTime, I need to record these discrepancies. I need a table that caputures these inconsistent users. No comparison about break time and other kinds of time are not necessary at this time. So on User2 and User3. ......... |
#2
|
|||
|
|||
Jay,
Please ask one question in one newsgroup. I have seen similar messages from you over several news groups. Be patient to see if your first message makes it to the news group. -- Duane Hookom MS Access MVP -- "Jay" wrote in message ... I have a input table as follows: UserName Action ActionTime FirstLogOnTime LastLogOffTime User1 Logon 10:04:24 10:00 19:00 User2 Logon 11:07:04 11:00 20:00 User1 Logoff 11:45:34 10:00 19:00 User1 Logon 11:57:55 10:00 19:00 User2 Logoff 12:02:06 11:00 20:00 User2 Logon 12:17:45 11:00 20:00 User1 Logoff 18:53:34 10:00 19:00 User2 Logoff 19:52:34 11:00 20:00 ... ... .... ... ... I want a output table as follows: UserName Action ActionTime FirstLogOnTime LastLogOffTime TimeDiff User1 Logon 10:04:24 10:00 19:00 04:24 User1 Logoff 18:53:34 10:00 19:00 -06:26 User2 Logon 11:07:04 11:00 20:00 07:04 User2 Logoff 19:52:34 11:00 20:00 -07:26 Explain about tables: There are more than thousand users to log on and off in company's telephhone system based on their scheduled first logon and last logoff times. ActionTime field records actual log time including break and lunch time and other kinds of time. I want to compare User1's first logon time with actual first logon time, last logoff time with actual last logoff time only. If user1 logs on later than 3 minutes after a scheduled FirstLogOnTime or logs off earlier than 3 minutes ahead of LastLogOffTime, output table must caputure these inconsistent users only. No comparison about break time and other kinds of time are not necessary at this time. So on User2 and User3. ........ Please, help me with step by step query/programmng instructions. Really appreciate your helps!!!! Explain about table: There are more than thousand users to log on and off in company's telephhone system based on their scheduled first logon and last logoff times. ActionTimr field records actual log time including break and lunch time and other kinds of time. I want to compare User1's first logon time with actual first logon time, last logoff time with actual last logoff time. If user1 logs on later than 10 minutes after a scheduled FirstLogOnTime or logs off earlier than 10 minutes ahead of LastLogOffTime, I need to record these discrepancies. I need a table that caputures these inconsistent users. No comparison about break time and other kinds of time are not necessary at this time. So on User2 and User3. ........ |
#3
|
|||
|
|||
And I've already posted a reply in the Queries newsgroup
-- Message posted via http://www.accessmonster.com |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Challenging Duplicate Question... | rae820 | Worksheet Functions | 2 | June 9th, 2005 04:52 PM |
VERY CHALLENGING! SHOWING PRODUCT AVAILABILITY | sf | General Discussion | 6 | April 19th, 2005 12:50 PM |
Need help w/ Challenging Query | Tom | Running & Setting Up Queries | 4 | June 23rd, 2004 04:31 PM |
Challenging Question - is it possible?? | Thadeus Clompen | Calendar | 1 | May 19th, 2004 10:27 PM |
Challenging Question - Troubleshooting Formula | Rachel | Worksheet Functions | 7 | May 12th, 2004 04:42 PM |