joshirohany
Registered User.
- Local time
- Today, 08:35
- Joined
- Apr 3, 2019
- Messages
- 33
Sorry, I do not understand what you are saying?Ok, that works, but how to this value in Form, since there are many employees.
To be clear, if someone comes in at 8AM, leaves at 8:30, returns at 4PM and leaves at 5PM, you want the time between 8AM and 5PM or 9 hours rather than 1.5 hours?I have a log from Biometric Attendance Machine. The same are imported in Access. I want the form should consider only First In and Last Out and Difference in hours based on date.
I want the form should consider only First In and Last Out and Difference in hours based on date.
Given that dates and times are all DateTime data type, point 3 and 4 can collapse to:Here is a screenshot of the first 35 records of 105 records:
View attachment 111678
You don't have any other tables. So you cannot relate an employee table with a dates worked table and further, a times worked table. So the very first thing you need to do is design the database application properly with tables relating to one another. At the very least, you will need an Employees table, a Dates worked table and a Times worked table.
Then, and only then, can you begin to determine which employee worked each date and for what hours. Then, you can calculate the difference between hours.
- You have multiple employees
- Each employee works multiple dates
- Each date worked has multiple times worked during that date worked
- Each Time period worked has a Beginning time and an End time
And each employee and related dates and related times all need to be in separate tables and relationships established. At this point the OP is a long long way from creating forms or queries or calculations. They need to design it properly first.Given that dates and times are all DateTime data type, point 3 and 4 can collapse to:
3&4: Each period worked has a Beginning datetime and an End datetime.
This also accommodates working past midnight, or 25 hours in a row, or other esoterica.
I would neutralize all of them if they didn't pair. There is no way to make sense out of random in/out punches.Pat's suggestion is good, but with seven time recordings per day, in the given representation you don't know which record you would have to neutralize.
Have your questions been answered?Dear Experts,
I have a log from Biometric Attendance Machine. The same are imported in Access. I want the form should consider only First In and Last Out and Difference in hours based on date.
Your help is already appreciated.
Yes. Super thanks to all.Have your questions been answered?