Time Calculations

G

Guest

I've got a query that will show the sum of downtime. The downtime is
measured in minutes, in the queru I'm converting it to hours. The problem is
that the answer is coming out to 10 decimal places, I would like it to be 1
or 2. I've tried changing it in the properties of the field without any
luck. Is there any other way to change this?

Thanks for the help

Tommy
 
J

John Spencer

If you are using the results in a report you can set the format property of
the control to handle the display of the data.

Otherwise, you could try the Round function on the results
Round(1.222456,2) returns 1.22

Or some simple math
Int(1.224456 *100 )/ 100 returns 1.22

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
G

Guest

Thanks, that worked

John Spencer said:
If you are using the results in a report you can set the format property of
the control to handle the display of the data.

Otherwise, you could try the Round function on the results
Round(1.222456,2) returns 1.22

Or some simple math
Int(1.224456 *100 )/ 100 returns 1.22

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top