Link to home
Start Free TrialLog in
Avatar of ammiewinds
ammiewindsFlag for United States of America

asked on

Now is greater than 24 hours of given date

Hello Experts,

I have two columns, Date & Now.  They are both formatted as General Date

Date                                               NOW
10/10/2013 4:11:00 AM      10/10/2013 4:59:33 PM
9/5/2013 5:41:00 PM                           10/10/2013 4:59:33 PM

I want to be able to query for [NOW] >24 hours from [Date].  A simple "Yes" "No" answer would suffice.

Any simple solution for an iif expression here?

Your help is greatly appreciated.  I am sure that I must be overthinking this.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You may wish to be accurate to the minute, and Format can be used:

Format(DateDiff("n",[Date],[Now])\1440,"Yes/No")

/gustav
Avatar of ammiewinds

ASKER

Thank you, Jim.  I was totally over thinking this.