Microsoft
Software
Hardware
Network
Question : Time Difference in Access
I have a table with the following data
Date | Time In | Time Out
01/01/10 | 7.00 AM | 11.00 PM
01/02/10 | 8.30 AM | 8.30 PM
How do I calculate the difference between Time Out and Time In for each day?
In the example above I should obtain 16 hours for 01/01 and 12 hours for 01/02
I tried TimeOut - TimeIn but I get weird numbers
Answer : Time Difference in Access
If you just want the number of hours as a numeric value (e.g. 16h 30min = 16.5 and 16h 20min = 16.33333) then
SELECT ([time out]-[time in])*24 AS Expr1
FROM tbl;
Random Solutions
0xc004e003 error code activation problems windows 7
Unable to tab out of empty textbox on a bound control
Detect scroll event
ZONE replication in DNS..
sq; 2005 query sql 2005 store procedure
SCCM Report All Installed Software
More than 1 DC with 2008 SBS + 2 2008 r2 and 1 2003 std
Exchange PTR Record and Natting
webmethod return value in asp.net
Catching the extension after hangup in Asterisk