By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,234 Members | 1,844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,234 IT Pros & Developers. It's quick & easy.

Time calculation problems

P: n/a
I am trying to get a result that will show me the difference, in hours and
minutes, between two times. The application is on a staffing roster, and
what i want to be able to do is calculate working hours in the day, so
difference between start time and finish time less a predetermined amount
for lunch breaks (1/2 hour). So if someone starts at 9am and finishes at
5pm, i need the result to be 7 1/2 hours.

I have been unable to find a solution to this, so any help would be greatly
appreciated

glenn
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Create a query into this table.

Type a calculated field into the Field row of query design:
Hours: (DateDiff("n", [StartTime], [FinishTime]) - 30) / 60

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Glenn Cornish" <gl***@southwest.com.au> wrote in message
news:3f********@usenet.per.paradox.net.au...
I am trying to get a result that will show me the difference, in hours and
minutes, between two times. The application is on a staffing roster, and
what i want to be able to do is calculate working hours in the day, so
difference between start time and finish time less a predetermined amount
for lunch breaks (1/2 hour). So if someone starts at 9am and finishes at
5pm, i need the result to be 7 1/2 hours.

I have been unable to find a solution to this, so any help would be greatly appreciated

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.