Jump to content

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

Recommended Posts

Posted

Hello. I am new to filemaker and have very little experience so please bare with me. I have learned a little just from reading through the threads. I need to create a calculated field that will give me "age" based on two other criteria besides birth date. If one's gender is "M" I need to calculate their age as of August 1 of the current year. If one's gender is "F" i need to calculate as of January 1 of the current year. Can anyone lead me in the right direction? Thanks.

Posted

Well, I'm opting not to get naked (baring) wink.gif, but I believe this calc will work for you.

Case( gender = "M", Int( ( Date( 8, 1, Year( Status(CurrentDate) ) ) - birthdate ) / 365 ), gender = "F", Int( ( Date( 1, 1, Year( Status(CurrentDate) ) ) - birthdate ) / 365 ) )

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