Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 10th, 2005, 05:24 AM
Authorized User
Join Date: Apr 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lizhaskin
Default time calculations

Hi Guys
Please help!. I am trying to calculate time worked per day and then for the full month. I have a table with [TimeIn] and [TimeOut]. I have used the HoursAndMinutes Public Function to calculate time worked per day.

- HoursWorked: HoursAndMinutes([TimeOut]-[TimeIn])

Now I need to add all the answers together to get how many hours worked per month. When I do this on the report, I just get "Data Type Mismatch".

What do I do?


Old November 10th, 2005, 08:48 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

Are you calculating this in the report, or do you put the numbers together in a query first? You should put it together in a query first.

What do the fields look like? And where are you storing HoursWorked? Is that a field alias from a query, or are you trying to store that in a table? If the latter, what is the field type? And why in a table? =)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculations with a string mgeorge BOOK: Beginning ASP 3.0 4 October 10th, 2008 01:45 PM
Date Calculations scourge SQL Server 2000 9 May 11th, 2006 05:08 AM
Real Time Calculations on Form losartan Access 10 February 10th, 2005 11:47 AM
Run Time Calculations angel_xpmx Classic ASP Databases 2 November 27th, 2004 05:32 AM
real time calculations jman11587 Javascript How-To 4 June 29th, 2003 07:15 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.