Results 1 to 2 of 2
  1. #1
    aflamin24 is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2012
    Posts
    7

    Add sequence number to time punch table

    I have a table at work that contains employee time card punches. There are actually 2 tables, the table punch in contains the employee scheduled start time and then their actual start time. I am able to get their actual punch in.

    The challenge is that the other table, we'll call it Punches has multiple punches becauce the employees are full time. They leave for lunch and change work areas occassionally, all during the same work day. I'm trying to add a sequence number to my query, or maybe I need to create a local copy of these tables daily and add the sequence number there? I'm assuming I can do this by taking the an employees first punch time say 1700 hours and that would be 1, then each punch after would be 2, 3, 4 etc..

    The nice thing about the Punches table is that instead of going back to 0001 at 12:01 am it goes to 2401 and that saves me a hassle from having to deal with different dates b/c many of these employees finish work after midnight.

    Anybody ever done something like this? The goal here is to get the amount of time these people worked at each area and display it on a gantt chart, but I have that part taken care of.



    Thanks again, I'm a noob.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I haven't seen this question asked before.

    Should this sequence start over each workday? How would you know that employee's 'first' punch time is at 1700 hours (5 pm)? Would it be the first time that follows scheduled start time? What if they punch in before scheduled start time? No matter what, shifts crossing midnight will still be an issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-06-2012, 09:35 AM
  2. Enter new number in sequence in PO
    By tchirpich in forum Access
    Replies: 30
    Last Post: 12-30-2011, 11:24 AM
  3. how to auto inset sequence number at column
    By newaccess in forum Access
    Replies: 1
    Last Post: 04-01-2011, 06:55 PM
  4. Find Missing Number in Sequence per Record
    By escuro19 in forum Programming
    Replies: 1
    Last Post: 11-10-2009, 03:15 PM
  5. Auto Sequence String Serial Number
    By eddyc99 in forum Programming
    Replies: 2
    Last Post: 10-02-2009, 08:11 AM

Tags for this Thread

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