I am running into a error problem I am currently using this formula with in a qurrey and it is working great.
Total Time : Format(DateDiff("n",[TimeIn],[TimeOut])\60,"0\:") & Format(DateDiff("n",[TimeIn],[TimeOut]) Mod 60,"00")
I want to be able to take the Total Time field and mutiply it to an Employee's {BASE RATE] to achive a total cost for the day????? Any suggestions with this, Really need help, getting frustrated...
--
Message posted via http://www.accessmonster.com 4 2798
Jamie Pittman via AccessMonster.com wrote: I am running into a error problem I am currently using this formula
with in a qurrey and it is working great. Total Time : Format(DateDiff("n",[TimeIn],[TimeOut])\60,"0\:") &
Format(DateDiff("n",[TimeIn],[TimeOut]) Mod 60,"00") I want to be able to take the Total Time field and mutiply it to an
Employee's {BASE RATE] to achive a total cost for the day????? Any
suggestions with this, Really need help, getting frustrated... -- Message posted via http://www.accessmonster.com
1. Convert time to minutes.
2. Divide minutes by 60 to get hours.
3. multiply by rate.
HrlyRate*DateDiff("n",StartTime,StopTime)/60
What you're doing is _formatting_. You're forcing the stuff to text
and then trying to multiply by a text value.
I still new to the access part how would I create the formula to convert to minutes? Thanks for the quick response....
--
Message posted via http://www.accessmonster.com
I figured out how to do the formula. I have another issue. When I caculate overtime, I used a yes or no check box. Is there away that if I have a employee work more than 40 hours a week that anything over that will be considered overtime????
--
Message posted via http://www.accessmonster.com
You need to work with centesimal time. 09:15 h. = centesimal 09:25.
regards
"Jamie Pittman via AccessMonster.com" <fo***@AccessMonster.com> escreveu na
mensagem news:05******************************@AccessMonste r.com... I am running into a error problem I am currently using this formula with in a qurrey and it is working great.
Total Time : Format(DateDiff("n",[TimeIn],[TimeOut])\60,"0\:") & Format(DateDiff("n",[TimeIn],[TimeOut]) Mod 60,"00")
I want to be able to take the Total Time field and mutiply it to an Employee's {BASE RATE] to achive a total cost for the day????? Any suggestions with this, Really need help, getting frustrated...
-- Message posted via http://www.accessmonster.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stu |
last post by:
Is there a simple function call within "C" that I can use to convert
number of seconds (keep in mind this may be a type longlong and has to
work on UNIX and NT) into Days, months, Hours, Minutes...
|
by: J M |
last post by:
I rebooted a network device just few minutes ago and getting device-up-time
value 3191. How do I convert a time elapsed in days hours minutes and
seconds for above value?
Example: This device...
|
by: Bill nguyen |
last post by:
I would like to be able to force "HH:MM" format for a text field to show
hours and minutes in military format. User can enter 130 or 0130 and the
text would display "01:30"
Any suggestion is...
|
by: markdp |
last post by:
I'm trying to write a program that takes a user inputted number of seconds and converts it into hours, minutes and seconds. So for instance, the program prompts the user for seconds, lets say 1000...
|
by: baneaic |
last post by:
I'm trying to create a form that will allow a user to enter certain
job specifications (# of pages and # of copies) and then have a field
that will automatically calculate how long that job will...
|
by: Lorisabel |
last post by:
I would like to ask for some help with this assignment as i don't know how to start it.
Write a C++ program that prompts the user to input the elapsed time for an event in seconds. The program...
|
by: remya1000 |
last post by:
how can i select time (hours,minutes,second) in updown arrow buttons in VB.NET.
as we have current time displayed in date and time properties in our system.
in date and time properties, while...
|
by: Bert Murphy |
last post by:
Im trying to write code that would have seconds for the input,convert the seconds to the hours:minutes:seconds,accumulate the hours:minutes:seconds to a maximum of 999Hours:59Minutes:59Seconds as...
|
by: =?Utf-8?B?U2hlbGRvbg==?= |
last post by:
Hello -
I have about ten integer values that each need to be converted to days,
hours, minutes and seconds. I can't seem to find a formula for same that
works. These integer values come from a...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |