Jump to content

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

Recommended Posts

  • Newbies
Posted

Hello!

I have a calculation field who takes the current year minus the birth year to display the player's category (soccer).

My current calc is like:

IF(Year(Today) - Year(Date de Naissance) < 19 ; "U" & (Year(Today) - ANNEE(Date de Naissance));"Senior")

The problem with this one is that everyday, the database calculates everything.

Which function should I use instead to avoid this? The only times I need to change the results are:

1- Once a year (January)

2- When adding new records

By the way, my Filemaker is french, so I tried to "translate" the functions I used...the french calc goes like:

SI(ANNEE(MAINTENANT) - ANNEE(Date de Naissance) < 19 ; "U" & (ANNEE(MAINTENANT) - ANNEE(Date de Naissance));"Senior")

Thanks !

Joel

Posted

StatusCurrentDate can replace Today

Beware - if you want the result to be correct at all times then you must specify the calulation to be "not stored"

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