and IIf statement in a query

35 pts.
Tags:
IIF statement
How do I write an IIF statement in a query, that does the following: if date1 - date2 is less than or = to 0 then Y else if greater than 0 then N

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    iif ([Date1]-[Date2] > 0, "N", "S")
    77,225 pointsBadges:
    report
  • tlsanders1
    iif ([Date1]-[Date2] > 0, “N”, “Y”)
    1,340 pointsBadges:
    report
  • philpl1jb
    iif ([Date1]>[Date2], “N”, “Y”)
    53,910 pointsBadges:
    report
  • carlosdl
    Haha, sorry, I was thinking in Spanish ;-).
    77,225 pointsBadges:
    report
  • philpl1jb
    Carlos, you're always thinking in Spanish.
    53,910 pointsBadges:
    report
  • carlosdl
    :)
    77,225 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: