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  
 
programming4us programming4us