Can I Add Some Hours To Now() ?

Jun 26, 2005

I am using the now() function in my date_added field.
My site is GMT based but my server is in the US and is returning the date added as 6 hours before which does not look good on the site ...

Is there a way to add 6 hours when the timestamp is being added ?( now() +6hrs ) for example...

Or can I add 6 hours to a time stamp on read back? If so how can I add this in clasic asp?

View Replies


ADVERTISEMENT

Queries :: Subtract 8 Hours Of Work From Result Hours

Nov 29, 2014

I want to subtract 8 hours of work of the Result of employee work hours/

There is attachment...

View 3 Replies View Related

How To Keep Track Of Hours?

Feb 5, 2005

Hi, I am trying to figure out a way to keep record of store hours, and days open for lots of different restaurants. The only thing I could up with is the following. I'm not sure how to keep track of store hours, or even the best way to make a table for hours. Any help is appreciated, thanks.


tblRestaurant
RestaurantID (pk)

tblRestaurantDays
RestaurantID(pk)
DayID(pk)

tblDays
DayID(pk)
DayName

tblHours
HourID(pk)
Time

View 6 Replies View Related

Multiplying Hours Help

Sep 13, 2005

I've searched and searched to no avail to find the answer, hopefully you can help.

The story is:

At work, our holidays are now taken as hours off. For example...if I take a Monday off, its 8hrs and 5 min and a Monday morning would be 4hrs and 5 min...What I want to do is calculate how many hours I have taken off throughout the year.

The way I was going to do it was:

Create Table called Times,

Fields = Week, Day, Morning, Afternoon, Friday and 1hour all Data Type "Date/Time"

Week = 37hrs, Day = 8hrs 5min, Morning = 4hrs 5min, Afternoon = 4hrs, Friday = 4hrs 40min, and 1hour = 1hr.

Then create another table called Hol Booking

Similar field names Wk, Days, Morn etc. They would be Data Type "Number"

Now in my simple head, I thought I could simply record how many weeks or days off i had off. Then create a query (for example) Week*Wk to calculate the amount of hours I had off.
In simple terms if I had 2 weeks and 2 days off, the query would multiply Week (37) by Wk (2) and Day (8:05) by Days (2), giving a total of 90 hrs and 10 min.

I know there is a datatype mismatch, but is there a way round this.

Thanks for listening

View 2 Replies View Related

Figure Hours

Oct 21, 2005

I have a query in which I need to display just the data that was entered from 9:00 p.m. the previous day until now. There is a date/time field called "QtyTime".

Thanks.

View 2 Replies View Related

Check To See If 72 Hours

Nov 21, 2007

I have an access table, and there is a field called user_time. Once a user record has been inserted, it puts a timestamp on this field, to record the date/time the record was saved to the database.

Now I need to write a query to check if it has been 72 hours since the insertion of the user into the database. This will exclude weekends.
If a record was inserted on a Friday, on Monday it will not be 72 hours, as weekends are not taken into account only weekdays. So Monday will only be 24 hours since the user was added.

Please can you help me with this.

View 1 Replies View Related

Totalling The Hours

Aug 11, 2006

Hi, I have been looking for some answear, but haven't find the proper one!!
I have a form containing a number of records showing the hours worked in format HH.MM at the end of the form I have the sum of the hours, but the result is not correct.
To make it simple to understand, actualy the total of hous for 11.55 and 11.14 gives me the result of 22.69 but the correct result should be 23.09 (23h and 09m and not 22h and 59m)
How can I get the right total???
Marco

View 2 Replies View Related

Time In Excess Of 24 Hours

Apr 10, 2006

Looking to have a time field that a user can enter how long they worked an issue. Format should be ##:##, but I'm afraid that if I use text, calculations will be impossible.
How does someone do this if it's expected that the value will frequently go over 24 hours?

View 5 Replies View Related

Problem With Date (hours)

Dec 14, 2005

Hello.
I have this continous forms which gets data from a query. The query has a field that sums date(hours), and I want them to show more them 24, for example, 42:30.

If I use general number it shows something like 1.2303256 and if I use short date it show something like 02:00 for 26 hours.

If I use a simple code is shows the SAME value in ALL the continuos form.

Which code should I put at the forms field so it would work, that is, it shows a diferent short date in ALL the continous form?

Thanks
Filipe Lopes

View 2 Replies View Related

Can Anyone Do Me This Acess Project With In 48 Hours

Dec 12, 2007

its creation of simple reservation. both files explain what should be included...bluprint is also included

http://rapidshare.com/files/76226655/Comm499i_MiniCases_Access_notes.pdf.html

http://rapidshare.com/files/76226689/Comm499i_MiniCases_Access_slides.pdf.html

15 to 20 mins if u know ur things

Please i will highly apprecite it..i don't wanna fail...helppppppp

10$ rewards as apreciation of your time.

View 14 Replies View Related

Show Hours Greater 24

Dec 7, 2006

I'm a new italian member.

I have a problem:

How can I show hours, in a field, greater 24 h (p.e. 35:15) ?
Thanks
Babaiaga

View 2 Replies View Related

Datediff Minutes And Hours

Feb 3, 2006

I would like to calculate the time difference between two dates, what ive got so far is

TimeSpent: DateDiff("n",[datein],[dateout])

This calculates the minutes between two dates, Can you format this so that it calculates hours. minutes for example 124 minutes would be 2.04?

I thought using "h/n" might work but it hasnt
thanks

View 1 Replies View Related

Subtracting Time Over 24 Hours?

Mar 27, 2006

Any Help!

I have fields that are time formated 99/99/99" "00:00;0;_ and I want to subtract them.

I need to get the results in two forms; first in Days and second in Hours. I have used the obvious subtract one from the other and it gives me days in a rounded numbeer, but the hours is not working out.:confused:

DB

View 4 Replies View Related

Calculating Days And Hours

Jun 22, 2006

I have four date/time fields and I need to determine the number of days and the number of hours between them based on report date range. The Days need to be in one field and the hours in another field. I have tried DateDiff function with an IIF condition and get the following negative value in Expr1. If I remove the IIF condition then I get a positive value.

If the date in field 1 is less than field 3, the days and hours need to be calculated field 2- field 3 as long as field 2 is less than or equal to field 4. If field 2 is null and if the date in field 1 is less than field 3, the days and hours need to be calculated field 2-3 but if field 1 is less than field 3 the calculation would be field 4- field 1. When both dates are within the report range then DateDiff works fine.

Adm Date [/U](f1) D/C Date/Time (f2) Beg Report (f3) End Report (f4) Expr1

I could e-mail the table with sample dates if this would help
Can anyone assist me with this formula?????:mad:

View 2 Replies View Related

Hours Time Problem

Jun 27, 2006

I want to create a query that will calculate the following:

When a user enters a start time and an end time in 2 seperate fields (eg. 06:00 and 08:00) I want to automatically return how many hours fall between 00:00 to 01:00, 01:00 to 02:00, 02:00 to 03:00 etc through the 24 hour clock.

To give you a background why I want this, I'm creating a labour planning database that calculates the nuber of people available each hour in a warehouse. So when a user inputs 06:00 to 08:00 for overtime work I need the database to tell me 1 hour falls between 06:00 to 07:00 and 1 hour between 07:00 to 08:00.

I'm really struggling to come up with a solution to this one, any help would be appreciated.

View 1 Replies View Related

How To Calculate Business Hours!

Oct 27, 2006

I need to calculate the difference between to datetime fields. However, i need to exclude weekends, holidays and non-business hours. I also need to return the result in hours, minutes, seconds.

can this be done. if so, does anyone know how to do this, or is there code that i can implement and save for future uses.

thx,

john

View 1 Replies View Related

Error Adding Hours

Dec 23, 2006

I have the following SQL to add hours
SELECT tblTrip.PaySlipReference, Sum(tblTrip.NDays) AS TotNDays, Int(Sum(tblTrip.FlyingTime)*24)&"."& Format (Sum(tblTrip.FlyingTime),"nn") AS TotFlyingTime, Int(Sum(tblTrip.DutyTime))&"."& Format(Sum(tblTrip.FlyingTime),"nn") AS TotDutyTime, Int(Sum(tblTrip.TAFB))&"."& Format(Sum(tblTrip.TAFB),"nn") AS TotTAFB, Sum(tblTrip!DutyPayRate*tblTrip!TAFB) AS TotDutyPay, Count(tblTrip.NDays) AS NumberOfTrips
FROM tblTrip
GROUP BY tblTrip.PaySlipReference;

Refering to the part "AS TotFlyingTime" it works perfectly as the format is a 24h and never goes over 23.59 hh.mm. The problem I incour is a incorrect result for the other two parts of the code: "AS TotDutyTime" and "ASTotTAFB", these data have values over 23h59m.

View 2 Replies View Related

Subtract 7 Hours From The Query

Apr 19, 2007

4/11/2007 1:01:28 AM
4/12/2007 2:02:52 AM
4/13/2007 4:21:30 AM
4/14/2007 2:22:21 AM
4/15/2007 3:34:53 AM
4/16/2007 4:02:37 AM
4/17/2007 5:03:15 AM
4/18/2007 7:17:34 AM

I need helps again
How can I subtract 7 hour from the query

Thanks

View 3 Replies View Related

DateDiff Problem With Hours

Aug 29, 2007

Please tell me why Access and Excel are calculating the hours this way...
The number of hours between 18:00 hours (6:00 p.m.) and 24:00 hours (12 a.m.) should be 6 hours. Access and Excel are both returning a datediff value of 18 hours. If I change the end time to 12 p.m. (12:00 hours), then Access/Excel returns 6 hours but midnight is not 12:00 p.m. nor is it 12:00 hours.

Help!!!!!!!

View 2 Replies View Related

Not Pulling All The Records For Last 24 Hours

Jan 25, 2008

Here is my issue I am having, With the records we are pulling it is not pulling everything from the previous 24 hours. It is using the "D" to pull the information, however it is also using the default system time, so if i have a record that occured last night at 8:30 pm it is not showing up.

How do i get all of the records from the last 24 hours regardless of system time?

View 14 Replies View Related

Total Working Hours

Mar 10, 2008

Hi ther,

I wonder if someone could help me with what I am sure is simply code, I just can't seem to get the response I want. :confused:

I am working out each member of staffs working hours for the day.

[Start Time]
[Finish Time]
minus a 30 min lunch.

I would like to display the total hours worked for the day in an hour:minute format.

I've tried a few diferent things and still not got the answer I was after.

Your help with this is greatly appreciated.

View 7 Replies View Related

Total Hours By Week!?!

Mar 11, 2008

Hi All,

me again, now that I've got over the working hours hurdle I'd like to sum by week.

I'm quite new to access so please excuse my simple questions.

My fields are:

LogID {EmployeeID&Now()}
EmployeeName
StartTime {date&time}
FinishTime {date&time}

I have created a query to give me the total hours worked per day. Is there anyway I can total this by week?:confused:

Once again your help is greatly appreciated

View 9 Replies View Related

Entering Working Hours

May 5, 2006

Hi,

I have a form where you can enter the work you did in a day,

There are many users, each entering data for a single date.

What I want my form to do is, when a date and name is picked (from 2 boxes on the form) it will bring up the record relating to that person for the day.

If there is no record for that person on the day, this will be the first data the person enters.

So for example the form Hours:-

name mcbiyms2 (combo box) date 05/05/06 (text box:- =Date() )

Work Type 1 [ ] Time [ ]
Work Type 2 [ ] Time [ ]

So if somebody has already enetered some data for that day, it will bring this up to add too, if not it will be a new record to be entered.

Does anyone have any ideas?

View 1 Replies View Related

Hours + Minits Counting

Jul 3, 2007

Hey all,

I'm making al clocking database program.
I have a startdate (doesn't have to be the enddate of the shift)starting time and end time.

I have to calculate minits as well

for example

date 03/07/2007
start time 20:13 (date = 03/07/2007)
end time 02:43 (date = 04/07/2007)
but hours can be on same day as well (from 15:13 till 19:12 for example)

i need an easy way to calculate the total hours worked in preferably a form

any idea's anybody?

View 2 Replies View Related

Displaying More Than 24 Hours Format?

Jan 21, 2015

how can i get Access to display a value as hours:minutes:seconds in a query when is a 24 hours or greater value, for example i have the value 1.00826388888889 if i were using Excel i would format it as [h]:mm:ss and it would output 24:11:54.

View 2 Replies View Related

Need Help With Time/ Hours Worked Calculation

Jan 22, 2006

Hi Guys

I need to create a method of calculating -week number,hours worked per week and a leiu hours total.

Explanation

Users enter their worked hours per day. I need to calculate the total hours worked per user per week and if this is greater or less than their contracted hours a record of this figure over a continual time period (or year).

Variables :- Time worked,Holiday hours,Leiu hours taken,Sick leave, Other authorised leave.

I realise that i'm asking on a lot but working for a charity has financial limits.

Attached the basic database-so far

Thanks in advance for your help

Row

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved