Jump to content

This topic is 7858 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a date field.

I have a calculation field that says,

If (date > "7/15/2002", "Y", "N")

For some reason, all dates in the date field evaluate to Y.

If I change the calc to

If (date = 7/15/2002, "Y", "N"), everything evaluates to N, even if I enter 7/15/2002

Is this not a valid calculation?

Thanks.

M.

Posted

If (yourDate > Date (7,15,2002), "Y", "N") would be a good way to do it. Are you sure you need the "N" to be there? It's generally more useful to only return a result when true. It simplifies the calc too:

yourDate > Date (7,15,2002)

...is all you need. The result will be "1" if true.

Posted

the date field is definitely a date field.

myDate > Date(7,15,2002) is the answer.

As far as returning the N, the actual calculation does something else. This was just my simple test calculation to work on that formula.

Thanks for the help.

M.

This topic is 7858 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.