Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I created a date calculation field to track changes to another field with the following calculation:

If (IsEmpty(Status),"",Status(CurrentDate))

This works, except that when the Status field is null, the calculated date field contains a question mark.

Is there any way I can just set the date field to null (i.e. no value)?

Thanks, Kay

Posted

If (IsEmpty(Status),"",Status(CurrentDate))

If(IsEmpty(Status), 0,Status(CurrentDate))

You need to make your result Text Also.

I prefer a Case Statement over the If for two reasons.

I can read them and write them easier.

c_Status

Posted

How about:

Case(not IsEmpty(Status), Status(CurrentDate))

This leaves the field blank when status is empty.

Posted

Oops, good catch Ender,

My eyes are playing tricks on me again. I could have sworn that Kay ask how to display a 0 instead of a "?" mark, else I would have left the stupid 0 out of the calculations in the first place and just amended hers.

Using the Calculation provided by Ender, you can leave the field a date.

in order to leave the field a Date with the If Statement, you would have to alter it like this:

If(not IsEmpty(Status), Status(CurrentDate), TextToDate(""))

Lee

frown.gif

Posted

Thanks, folks. The TextToDate("") did the trick and allowed me to both leave the field as a date type and reset the field to null.

Kay

This topic is 7246 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.