Solved

Covert hours

Posted on 2011-03-17
7
324 Views
Last Modified: 2012-05-11
Hi Experts,
Is any way I can covert from 1 hour 30 min to 1.5 hours?

Thanks
0
Comment
Question by:jodstrr2
  • 3
  • 3
7 Comments
 
LVL 3

Expert Comment

by:CarlsbergFTW
ID: 35157029
(minute_value / 60)  * 100 - gives you the percentage , pretty close to your need.
0
 

Author Comment

by:jodstrr2
ID: 35157062
here is my formula in my query
Hours: Format([EndTime]-[BeginTime],"h:mm") but the result is 1:30
0
 
LVL 3

Expert Comment

by:CarlsbergFTW
ID: 35157106
something like this in a select statement :

select ((to_char(sysdate,'hh')) ),((to_char(sysdate,'mm'))/60)*100 from dual

This select worked on ORACLE SQL.
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:jodstrr2
ID: 35157116
I'm not use ORACLE SQL, I'm using access 2003
0
 
LVL 3

Expert Comment

by:CarlsbergFTW
ID: 35157123
You can just work with the minute value as specified in my first post. It's basic math (calculating percentage)
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 35157167

in access, use datediff

DateDiff("n", [BeginTime], [EndTime])/60

0
 

Author Closing Comment

by:jodstrr2
ID: 35157228
Thanks so much capricorn1!!!
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question