A
Annemarie
I built a time sheet, but I'm having difficulty calculating the fields. My
table name is time_table, my Query for the calculations is time_qry, and my
form name is time_form. I have a time stamp for time in, lunch out, lunch in,
and time out. (day_time_in_Monday, lunch_out_Monday, lunch_in_Monday,
day_time_out_Monday). Here is the code I'm using for field
day_total_hours_Monday; which is going to hold the total time for the day (I
used the expression builder).
day_total_hours_Monday: ( [time_table]![day_time_out_Monday] -
[time_table]![day_time_in_Monday] ) - ( [time_table]![lunch_in_Monday] -
[time_table]![lunch_out_Monday] )
Basically, (time out - time in)-(lunch out - lunch in) = total hours for the
day
This is the result I get: 0.341099537043192
My Time stamps are:
day_time_in_Monday 11:13
lunch_out_Monday 13:24
lunch_in_Monday 13:45
day_time_out_Monday 19:45
My table doesn't save the total times, it stays at 0. Can someone tell me
what I'm doing wrong?
table name is time_table, my Query for the calculations is time_qry, and my
form name is time_form. I have a time stamp for time in, lunch out, lunch in,
and time out. (day_time_in_Monday, lunch_out_Monday, lunch_in_Monday,
day_time_out_Monday). Here is the code I'm using for field
day_total_hours_Monday; which is going to hold the total time for the day (I
used the expression builder).
day_total_hours_Monday: ( [time_table]![day_time_out_Monday] -
[time_table]![day_time_in_Monday] ) - ( [time_table]![lunch_in_Monday] -
[time_table]![lunch_out_Monday] )
Basically, (time out - time in)-(lunch out - lunch in) = total hours for the
day
This is the result I get: 0.341099537043192
My Time stamps are:
day_time_in_Monday 11:13
lunch_out_Monday 13:24
lunch_in_Monday 13:45
day_time_out_Monday 19:45
My table doesn't save the total times, it stays at 0. Can someone tell me
what I'm doing wrong?