Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 19th, 2005, 01:05 PM
MichaelP MichaelP is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 4 MichaelP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m
Reputation Power: 0
Calculations with Times

(I've sent this yesterday but it seems to not have been posted.)

In MS Access, I need to calculate % of Estimated Time to Actual Time.

Estimated Time is calculated in a Query as Quantity/RatePerHour so I end up with a decimal format figure, e.g., 100000/15000 = 6.66667 (hours) which incorrectly displays as 16:00 (hh:mm) in my report (problem 1) .

The Actual Time is calculated in the Query by subtracting the start date & start time from the end date & end time, i.e., (Edate&Etime)-(Sdate&Stime) and this gives me a "Short Time" format result, e.g., 0.270833333335759 which displays as 6:30 (hh:mm) in my report.

When I divide Estimated Time by Actual Time, I get a weird 304%. It should be 97.4%. (problem 2)

Any ideas on how I should process to get correct %?
Many thanks
Michael

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Calculations with Times


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway