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 5762 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I've tried a number of permutations to get this to work but I just can't seem to nail this one.

I have a TimeStamp field ("TimeStamp") and a Get(CurrentDate) date field ("CurrentDate"). I need a Case statement calc to test if 90 days has elapsed since the TimeStamp date; if so, a blurb of text should appear; if not, nothing.

What's that syntax for this calc?

Thanks!

Rich

Posted

Ah! Got it.

Case ( Get ( CurrentDate ) - GetAsDate ( Timestamp ) > 90; "good cop"; "bad cop--no donut")

Posted

Your original post said you wanted nothing displayed if not 'good cop.' If this is true then you can forget about creating a calculation at all (which is important in keeping down the number of field clutter).

You would use conditional format. Create the words "good cop" in black. Conditional format calculation would be: Get ( CurrentDate ) - GetAsDate ( timestamp ) 90

... and change the text color to be same as your background color. It will then disappear completely if "bad cop - no donut" :wink2:

Posted

Thanks, LaRetta: I was working from a test file and goofing off a little more than I should; the "bad cop--no donut" text was supposed to be double-quoted to leave the field empty...though the conditional formatting idea is a good one to keep in mind, too!

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