time card formulars

G

Guest

formular to use in expression in query to work out hours worked using start
time & finish time

EXAMPLE (start 07:30 - finish 16:00 = 8.5 hours) -
lunch(30minutes)=(8hours worked)
 
J

John Spencer (MVP)

IF your times are both on the same date or also have the date, you can use the
DateDiff function to get the difference in minutes.

DateDiff("n",[Start],[End]) - 30

You can do some math on that figure to get the time in hours and minutes

X\60 & ":" & Format(X Mod 60, "00")

Substitute the DateDiff Function for the X

(DateDiff("n",[Start],[End]) - 30)\60 & ":" &
Format((DateDiff("n",[Start],[End]) - 30) Mod 60, "00")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top