D
Don C
I have a form for Employee’s Time Card. I have an entry for DATE WORKED, TIME
IN, TIME OUT, and HOURS WORKED. When I enter the DATE WORKED, I enter it as a
medium date. Example: 12/13/08 and the TIME IN as a medium time of 04:00 PM
and TIME OUT as a medium time of 12:00 PM.
In the HOURS WORKED I use this expression: Datediff(“nâ€,[TIME IN],[TIME
OUT])/60 which gives me the hours worked. Since the TIME IN really is
12/30/1899 4:00 PM and the TIME OUT is 12/30/1899 12:00 PM, the HOURS WORKED
returns -16 which should be 8. I know -16 is right because of the TIME IN and
the TIME OUT preceding date being 12/30/1899.
I was wondering if it is possible to write a expression for TIME IN and TIME
OUT that will use the date in the DATE WORKED that I enter and still let me
enter the time to TIME IN and TIME OUT. If this is possible I would like to
know how. If it is not possible I would like to know how you would set it up.
Please help me.
IN, TIME OUT, and HOURS WORKED. When I enter the DATE WORKED, I enter it as a
medium date. Example: 12/13/08 and the TIME IN as a medium time of 04:00 PM
and TIME OUT as a medium time of 12:00 PM.
In the HOURS WORKED I use this expression: Datediff(“nâ€,[TIME IN],[TIME
OUT])/60 which gives me the hours worked. Since the TIME IN really is
12/30/1899 4:00 PM and the TIME OUT is 12/30/1899 12:00 PM, the HOURS WORKED
returns -16 which should be 8. I know -16 is right because of the TIME IN and
the TIME OUT preceding date being 12/30/1899.
I was wondering if it is possible to write a expression for TIME IN and TIME
OUT that will use the date in the DATE WORKED that I enter and still let me
enter the time to TIME IN and TIME OUT. If this is possible I would like to
know how. If it is not possible I would like to know how you would set it up.
Please help me.