Joe8915
Registered User.
- Local time
- Today, 14:53
- Joined
- Sep 9, 2002
- Messages
- 820
Very Simple Query using the date and time function
Trying to show the total hours work.
My result is:
Start End Total Hrs Work
		
5/3/2011 9:45:00 AM 5/3/2011 5:00:00 PM 7
It should read:
Start End Total Hrs Work
		
5/3/2011 9:45:00 AM 5/3/2011 5:00:00 PM 6 hrs 45 mins
My Qry desing is:
Total Hrs Work: DateDiff("h",[Strttime],[EndTime])-1
the -1 is for 1 hour for lunch
What is it I am doing wrong?
 Trying to show the total hours work.
My result is:
Start End Total Hrs Work
5/3/2011 9:45:00 AM 5/3/2011 5:00:00 PM 7
It should read:
Start End Total Hrs Work
5/3/2011 9:45:00 AM 5/3/2011 5:00:00 PM 6 hrs 45 mins
My Qry desing is:
Total Hrs Work: DateDiff("h",[Strttime],[EndTime])-1
the -1 is for 1 hour for lunch
What is it I am doing wrong?
 
	 
 
		 
 
		 
 
		
 
 
		 
 
		 
 
		 
 
		 
 
		