473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

DateDiff calculation

I have a DateDiff calculation which well return negatives times I need to make the negative times zero. My calculation is
Expand|Select|Wrap|Line Numbers
  1. DateDiff("n",[Wrecker Arrival],[Lane Closure End Time])
Sep 15 '09 #1

✓ answered by missinglinq

Expand|Select|Wrap|Line Numbers
  1. IIf(DateDiff("n", [Wrecker Arrival], [Lane Closure End Time]) < 0, 0, DateDiff("n", [Wrecker Arrival], [Lane Closure End Time]))
Welcome to Bytes!

Linq ;0)>

3 2499
missinglinq
3,532 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. IIf(DateDiff("n", [Wrecker Arrival], [Lane Closure End Time]) < 0, 0, DateDiff("n", [Wrecker Arrival], [Lane Closure End Time]))
Welcome to Bytes!

Linq ;0)>
Sep 15 '09 #2
Thanks that worked!!! :)
Sep 15 '09 #3
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Sep 15 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: inamori | last post by:
I face that problems 07/01/2003 06/30/2006 ---------> it should be 3 01/01/2003 02/28/2005 --------->could i get 2 years and 2 months 01/01/2003 03/01/2005 ...
4
by: Paolo | last post by:
I am having some problem with a Year Function. I have form on which I have 4 field which indicate dates and an additional form which sums those dates: These are the fields: YEARS...
5
by: mcbill20 | last post by:
Hello all. I have a really basic question that I hope someone has a better answer for. I apologize in advance-- I know this is probably a really basic question but I am used to Oracle rathern than...
6
by: kevinjwilson | last post by:
I am trying to get the date difference between two dates but I don't want the function to include weekends in the calculation. Does anyone have an idea on how to make this work?
10
AccessIdiot
by: AccessIdiot | last post by:
Wow I'm failing miserably today. :-( I have a table with three colums: fill_start, fill_end, fill_dur. Fill_dur is supposed to calculate the difference in minutes between fill_start and fill_end....
9
by: StevoNZ | last post by:
Hi, I am a little stuck with a query I am trying to build. Attemting to calculate the delivery time for a material. I have managed to utilise the DateDiff function, but have some additional...
2
by: mlcampeau | last post by:
Hi guys. I know I've seen this somewhere, but when I need the answer, I can't seem to find it. This should be relatively simple. I'm trying to add criteria to a query so that it only shows people...
7
by: JenM | last post by:
Hi. I am a novice user. I am using the datediff function in a query. I am trying to calculate the number of week days between two dates. When I use "m" as the interval, the number of weeks is...
3
by: Jennifer | last post by:
I've got a bit of a problem calculating the duration of hours between a clock-in time and a clock-out time. It's a fairly straight-forward process. I put the clock-ins, clock-outs in a temp table...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.