Jan 31, 2005 #1 scoombs Technical User Jan 31, 2005 11 GB Hello. I have a form and I enter in: TimeIn TimeOut It is a night shift the database is for. I need a field that will work out how many hours have been worked. Example Hours: 22:00 - 05:00 Look forward to someone's Solution. Thanks, Steve Coombs
Hello. I have a form and I enter in: TimeIn TimeOut It is a night shift the database is for. I need a field that will work out how many hours have been worked. Example Hours: 22:00 - 05:00 Look forward to someone's Solution. Thanks, Steve Coombs
Jan 31, 2005 1 #2 PHV MIS Nov 8, 2002 53,708 FR IIf(TimeIn<=TimeOut, TimeOut-TimeIn, 24-TimeOut+TimeIn) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
IIf(TimeIn<=TimeOut, TimeOut-TimeIn, 24-TimeOut+TimeIn) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Jan 31, 2005 #3 willir MIS Aug 5, 2003 2,754 US Good use of IIF. I posted a less eloquent solution here... Time Calculation The only real difference is that the solution uses the DateDiff function. Richard Upvote 0 Downvote
Good use of IIF. I posted a less eloquent solution here... Time Calculation The only real difference is that the solution uses the DateDiff function. Richard
Jan 31, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR Just discover a bug: IIf(TimeIn<=TimeOut, TimeOut-TimeIn, 1-TimeOut+TimeIn) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
Just discover a bug: IIf(TimeIn<=TimeOut, TimeOut-TimeIn, 1-TimeOut+TimeIn) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244