Results 1 to 2 of 2
  1. #1
    ashraf_al_ani is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Aug 2014
    Posts
    6

    Attend system

    Dear All
    I have 2 tables one called checkinout which records the date and time of attend of an employee from the device the second table is called userinfo which contains the employee information such as the start shift time
    I have 2 employee A and B
    A his shift starts at 10:00:00 AM
    B his shift starts at 11:00:00 Am

    I want to make an update query that if A nad B enters earlier than their shifts start
    his attend in checkinout table will be updated to the shift time and if they entered after that no changes will happen
    Please any help

    Best Regards
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    I would add a field to tCheckINOut,
    [ClockAdj] date/time (this is the adjusted time of the user who clocked in at 9am but wasnt scheduled until 10am, so this field would show adjusted time of 9am)
    and
    [ClockDirection] text 1 (I or O clock in our out)

    sort the table by user/date, then mark the records I or O (1st records is a clock in, second is a clock out)

    Adjust the users hours by the query below, to chop off time out of the worktime:

    qsWorkTime = SELECT CHECKINOUT.USERID, CHECKINOUT.CHECKTIME, CHECKINOUT.THE_DATE, Format([CHECKTIME],"Medium Time") AS TimeMark, CHECKINOUT.ClockAdjFROM CHECKINOUT
    ORDER BY CHECKINOUT.USERID, Format([CHECKTIME],"Medium Time");

    qsWorktimeVsSchedule:
    SELECT qsWorkTime.*, USERINFO.START_WORK, USERINFO.END_WORK
    FROM USERINFO INNER JOIN qsWorkTime ON USERINFO.USERID = qsWorkTime.USERID;

    with this query you can calculate the ClockAdj trimming.

    Once you have clockIN/OUT then you can calculate hrs worked

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Payroll System
    By princess12 in forum Access
    Replies: 5
    Last Post: 04-02-2015, 05:22 PM
  2. Navigation system
    By jinz in forum Access
    Replies: 3
    Last Post: 12-12-2012, 07:21 AM
  3. What is system.mdb
    By azstyx in forum Access
    Replies: 6
    Last Post: 08-25-2011, 06:20 AM
  4. Replies: 2
    Last Post: 04-12-2011, 10:14 AM
  5. System.mdb or System.mdw?
    By cgriella in forum Access
    Replies: 1
    Last Post: 09-30-2008, 08:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums