Tmonk Posted October 7, 2003 Posted October 7, 2003 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.
-Queue- Posted October 7, 2003 Posted October 7, 2003 Well, I'm opting not to get naked (baring) , 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 ) )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now