Results 1 to 6 of 6
  1. #1
    warhead92100 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    19

    Question Question: Table Design - How to track time from multiple entry?

    Hi All,

    I'm new here, apologies if this is not the right place for this question.

    I am going to build a tracker for staff scheduling. I have not started building but currently working on the design, and I am stuck on how to check multiple entry with different time.

    My idea is to have a table that would hold the employee time, e.g. start - 9 am end - 5 pm, then I can count it into another table which will tell me that this employee is at the office at 9am, 10am, 11am, 12pm, 1pm, 2pm, 3pm, 4pm and 5pm. but if he had another work shift or overtime, let say 6 pm to 8pm as another entry on the table, how would I tell that the same employee is working at 9am, 10am, 11am, 12pm, 1pm, 2pm, 3pm, 4pm, 5pm, 6pm, 7pm and 8pm? I am using unique employee tag number as the basis of this lookup.



    Any idea is greatly appreciated.

    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    I personally use a
    [EMPid], [ClockIN], [ClockOUT]
    45152, 7/1/15 8am, 7/1/15 5pm

    This way I can easily find out , who didnt clock in , who didnt clock out.
    query calculates elapsed time.

  3. #3
    warhead92100 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    19
    Thanks ranman, however I need to produce a report for employees per hour, e.g. 200 employee are in the vicinity at 1pm, 180 employee are in the vicinity at 3pm.

    I am creating a table for each day with hours as fields, tbl_Monday would have employee tag number, 12mn, 1am, 2am .... 11pm as its field, this would be replicated to tbl_Tuesday to tbl_Sunday. My problem is how to cross check if an employee has multiple work shifts. Is there a way to query multiple entries from another table?

    Appreciate the ideas.

    Thanks!

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    it still works for that.

  5. #5
    kagoodwin13 is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Feb 2012
    Posts
    181
    Quote Originally Posted by warhead92100 View Post
    Thanks ranman, however I need to produce a report for employees per hour, e.g. 200 employee are in the vicinity at 1pm, 180 employee are in the vicinity at 3pm.

    I am creating a table for each day with hours as fields, tbl_Monday would have employee tag number, 12mn, 1am, 2am .... 11pm as its field, this would be replicated to tbl_Tuesday to tbl_Sunday. My problem is how to cross check if an employee has multiple work shifts. Is there a way to query multiple entries from another table?

    Appreciate the ideas.

    Thanks!
    Use a query to tell you which employees have clocked in, but have not clocked out. That will tell you who is still working.

    I would think about restructuring your tables though. Having separate tables for separate days will not work in the long run. Your information will be scattered, which will make it difficult to run queries and reports. Additionally, you'd probably have to wipe your data each week to keep track of which date Monday and Tuesday you are referring to, which would be a completely unnecessary activity.

    You should have only one table should keep track of employee timesheets. It needs to at least have the following fields: EmpID, TimeStamp, Action (clock in/clock out)

    You can use queries later to convert TimeStamp to a date, day of the week, and time of day, all from the one field.
    You can also use queries to keep track of each EmpID over a long time, such as "How many employees are here right now? How many hours does each employee work each week? How many employees worked overtime last week? How many employees worked overtime last month?"
    I think you'll be able to meet your business requirements a lot better in that way.

  6. #6
    warhead92100 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    19
    Quote Originally Posted by ranman256 View Post
    it still works for that.
    Quote Originally Posted by kagoodwin13 View Post
    Use a query to tell you which employees have clocked in, but have not clocked out. That will tell you who is still working.

    I would think about restructuring your tables though. Having separate tables for separate days will not work in the long run. Your information will be scattered, which will make it difficult to run queries and reports. Additionally, you'd probably have to wipe your data each week to keep track of which date Monday and Tuesday you are referring to, which would be a completely unnecessary activity.

    You should have only one table should keep track of employee timesheets. It needs to at least have the following fields: EmpID, TimeStamp, Action (clock in/clock out)

    You can use queries later to convert TimeStamp to a date, day of the week, and time of day, all from the one field.
    You can also use queries to keep track of each EmpID over a long time, such as "How many employees are here right now? How many hours does each employee work each week? How many employees worked overtime last week? How many employees worked overtime last month?"
    I think you'll be able to meet your business requirements a lot better in that way.

    Thanks guys, didn't thought of that until I started working on the table - there were so many. However, there's no "bundy clock". It would be from a sharepoint site that each supervisor will be submitting the schedule of their teams which I use as the main source table. I now have 12 query that create 12 more tables - checking on hours, days, teams, etc. etc.
    It is a bit long process to get each information I want, any idea to make this more efficient is greatly appreciated.

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

Similar Threads

  1. Replies: 1
    Last Post: 05-13-2013, 10:55 PM
  2. design phase ... question on multiple entries from same table
    By sbrockett751 in forum Database Design
    Replies: 2
    Last Post: 03-13-2013, 03:13 PM
  3. Design Question: Multiple years
    By dcfrancis in forum Database Design
    Replies: 4
    Last Post: 04-25-2012, 01:46 AM
  4. Multiple data entry question
    By Appeal in forum Forms
    Replies: 3
    Last Post: 01-06-2012, 11:40 AM
  5. Table design to Track Multiple Client Types
    By TannerT in forum Database Design
    Replies: 6
    Last Post: 06-02-2010, 08:21 PM

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