Khurramshaikh47
Member
- Local time
- Today, 05:59
- Joined
- Aug 19, 2021
- Messages
- 212
Hi, I am using the calculation data type field in my table to make a field that can calculate grace time for employee attendance.
There are 2 different fields Time_In and Time_Out. I want to use time from the Time_In field while both time and date are written in this field. Is there a way I can use only time from this field?
Following is the syntax that I am using to calculate grace time.
You Can See the situation in the screenshots below.
Thank you in Advance.
There are 2 different fields Time_In and Time_Out. I want to use time from the Time_In field while both time and date are written in this field. Is there a way I can use only time from this field?
Following is the syntax that I am using to calculate grace time.
Code:
IIf([Time_In]>#9:00:00 AM# And [Time_In]<=#9:15:00 AM#,(Round(([Time_In]-#9:00:00 AM#)*24,2)),0)
You Can See the situation in the screenshots below.
Thank you in Advance.