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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    iif ([Date1]-[Date2] > 0, "N", "S")
    69,465 pointsBadges:
    report
  • tlsanders1
    iif ([Date1]-[Date2] > 0, “N”, “Y”)
    1,340 pointsBadges:
    report
  • philpl1jb
    iif ([Date1]>[Date2], “N”, “Y”)
    49,950 pointsBadges:
    report
  • carlosdl
    Haha, sorry, I was thinking in Spanish ;-).
    69,465 pointsBadges:
    report
  • philpl1jb
    Carlos, you're always thinking in Spanish.
    49,950 pointsBadges:
    report
  • carlosdl
    :)
    69,465 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following