joshirohany
Registered User.
- Local time
- Yesterday, 16:26
- 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.
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.
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?
You asked how to do that. So I wondered if you were able to do it. As you have learned, you cannot use Max or Min or First or Last to get your Log In and Log Out dates and times. When you receive the EXCEL data, every SECOND record is a Log Out date and time for each employee. So each person could have times that span over two different days. I was able to translate your EXCEL imported data to dates and times logged in and logged out for each employee. That way, dates and times spent in attendance are accurate. Using Max or Min or First or Last will not give you accurate times spent in attendance.Request to share a drop box for month so we can filter which month attendance and a drop box for other employee
Sure LarryE....