Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: Total short...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 8 Topic 30161 of 31596
Post > Topic >>

Re: Total short time fields in query

by "KC-Mass" <connearneyATcomcastDOTnet> May 5, 2008 at 08:29 AM

I think the basic problem is that your predecessor used the wrong data
type.
The data should have been stored as a number.

Try converting it to a number in a query. Put an Expression in the query 
that
multiplies the timefield by 1440 (giving minutes) and divide that by 60 
(giving hours).

A "Time" of 3:30  will give you 3.50.  You can the sum those values.

The SQL would be something like:
"SELECT Sum([timeforprocess]*1440/60) AS NumbersFROM tblTime; "

I am guessing this is what you need.

Regards
Kevin




"Ecohouse" <ecovindaloo@[EMAIL PROTECTED]
> wrote in message 
news:3476a795-6e48-4aad-8f80-c34a494b6d3b@[EMAIL PROTECTED]
> I'm working on a project that was dropped in my lap.  It is in Access
> 2003.  There are short time fields which get calculated values (eg.
> 1:30).  But I will need to total up those values for re****ts in
> qiueries.  When I tried to drop one of the fields in the query builder
> and used the total function the totals was way off.
>
> So I was wondering what would be the best way to do this?  Thanks in
> advance for the help.
 




 8 Posts in Topic:
Total short time fields in query
Ecohouse <ecovindaloo@  2008-05-04 14:18:52 
Re: Total short time fields in query
"KC-Mass" <c  2008-05-04 18:01:21 
Re: Total short time fields in query
Ecohouse <ecovindaloo@  2008-05-04 15:17:35 
Re: Total short time fields in query
"Fred Zuckerman"  2008-05-05 01:25:46 
Re: Total short time fields in query
Ecohouse <ecovindaloo@  2008-05-05 04:49:51 
Re: Total short time fields in query
Bob Quintal <rquintal@  2008-05-05 17:57:40 
Re: Total short time fields in query
"KC-Mass" <c  2008-05-05 08:29:59 
Re: Total short time fields in query
Ecohouse <ecovindaloo@  2008-05-06 06:00:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 11:36:45 CST 2008.