C
Chris75 via AccessMonster.com
Hello,
In a form called Schedule (based on the table Schedule) I have the following
textboxes that are bound to the table Schedule:
Time In, Time Out, Time Off, Anomaly and Overtime
I also have an unbound textbox called HRS that gives me the result of the
following equation:
=[Time Out] - [Time In] - [Time Off] - [Anomaly] + [Overtime]
The above result gives me the daily hours that someone worked.
The formating is decimal, as an example.
16.5 (4:30) - 7.5 (7:30) - 1.0 - 1.0+ 3.0 = 10.0
I also added another figure for lunch the hour
[16.5 (4:30) - 7.5 (7:30) - 1.0 - 1.0+ 3.0 = 10.0] - 1.0 = 9.0
The issue is that some employees work a variable schedule and may not take
the lunch hour. Would anyone know how to set up a condition to substract or
not count the lunch hour based on the amount of hours worked.
The idea is:
If [Time Out] - [Time In] - [Time Off] - [Anomaly] + [Overtime] >5 Then -1 Or
=[Time Out] - [Time In] - [Time Off] - [Anomaly] + [Overtime] <5 Then 0
Thank you.
In a form called Schedule (based on the table Schedule) I have the following
textboxes that are bound to the table Schedule:
Time In, Time Out, Time Off, Anomaly and Overtime
I also have an unbound textbox called HRS that gives me the result of the
following equation:
=[Time Out] - [Time In] - [Time Off] - [Anomaly] + [Overtime]
The above result gives me the daily hours that someone worked.
The formating is decimal, as an example.
16.5 (4:30) - 7.5 (7:30) - 1.0 - 1.0+ 3.0 = 10.0
I also added another figure for lunch the hour
[16.5 (4:30) - 7.5 (7:30) - 1.0 - 1.0+ 3.0 = 10.0] - 1.0 = 9.0
The issue is that some employees work a variable schedule and may not take
the lunch hour. Would anyone know how to set up a condition to substract or
not count the lunch hour based on the amount of hours worked.
The idea is:
If [Time Out] - [Time In] - [Time Off] - [Anomaly] + [Overtime] >5 Then -1 Or
=[Time Out] - [Time In] - [Time Off] - [Anomaly] + [Overtime] <5 Then 0
Thank you.