![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to ask for help with calculating for a person's age with the new versions of filemaker. With the new database I am trying to develop, I need to calculate the age of a person from date of birth. Looking through the older threads, I found the functions TODAY, and Status(CurrentDate) being recommended. However, when I try to use either of these in a calculation, it aways says "unable to find function" or in the case of currentdate, "unable to find specified field". Is there a current simple calculation for it that will work? Thanks! |
#3
| |||
| |||
|
|
I would like to ask for help with calculating for a person's age with the new versions of filemaker. With the new database I am trying to develop, I need to calculate the age of a person from date of birth. Looking through the older threads, I found the functions TODAY, and Status(CurrentDate) being recommended. However, when I try to use either of these in a calculation, it aways says "unable to find function" or in the case of currentdate, "unable to find specified field". Is there a current simple calculation for it that will work? Thanks! |
#4
| |||
| |||
|
|
In article <1180652093.532303.124870 (AT) d30g2000prg (DOT) googlegroups.com>, gpicache (AT) gmail (DOT) com wrote: I would like to ask for help with calculating for a person's age with the new versions of filemaker. With the new database I am trying to develop, I need to calculate the age of a person from date of birth. Looking through the older threads, I found the functions TODAY, and Status(CurrentDate) being recommended. However, when I try to use either of these in a calculation, it aways says "unable to find function" or in the case of currentdate, "unable to find specified field". Is there a current simple calculation for it that will work? Thanks! Don't use Today. Today is really an auto-enter field that is only calculated when FileMaker opens. This means a system left running past midnight will return the wrong date. Status(CurrentDate) is the better function that returns the current date read from the computer when it is accessed ... BUT it is a function for older versions of FileMaker. In new versions I believe it has been renamed to Get(CurrentDate). As for calculating someone's age there are two things to keep in mind. If you're using it in a Calculation field, then this will be recalculated every time you open the Database on a new day, which on a slow computer or LOTS of records means it can take a little while. I used to do this on an old Mac LC II a long time ago and it would take 20mins or so to recalculate. Today's computers are of course MUCH faster than that. The other thing to keep in mind is that you can't simply subtract the birth year from the year returned by Get(CurrentDate) since the person may not have had their birthday yet this year. This leads to a Calculation something like: Age Calculation, Number Result, Unstored = Year(Get(CurrentDate)) - Year(Birthdate) - If (Get(CurrentDate) < Date(Month(BirthDate), Day(BirthDate), Year(GetCurrentDate)), 1, 0) Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
#5
| |||
| |||
|
|
I would like to ask for help with calculating for a person's age withthe new versions of filemaker. With the new database I am trying to develop, I need to calculate the age of a person from date of birth. Looking through the older threads, I found the functions TODAY, and Status(CurrentDate) being recommended. However, when I try to use either of these in a calculation, it aways says "unable to find function" or in the case ofcurrentdate, "unable to find specified field". Is there a current simple calculation for it that will work? Thanks! For one thing, the Today function does not exist in FM 7+, nor is |
#6
| |||
| |||
|
|
In article 1180652093.532303.124870 (AT) d30g20...oglegroups.com>gpicache (AT) gmail (DOT) com wrote: I would like to ask for help with calculating for a person's age withthe new versions of filemaker. With the new database I am trying to develop, I need to calculate the age of a person from date of birth. Looking through the older threads, I found the functions TODAY, and Status(CurrentDate) being recommended. However, when I try to use either of these in a calculation, it aways says "unable to find function" or in the case ofcurrentdate, "unable to find specified field". Is there a current simple calculation for it that will work? Thanks! For one thing, the Today function does not exist in FM 7+, nor is Status used any longer. The modern equivalent in 7+ is Get (CurrentDate ). There are several Custom Functions for calculating age at Brian Dunning.com (age between two dates, age as of today, etc.), any ofwhich can be used in a calculation field rather than as a CF. Matt Sorry.... |
#7
| |||
| |||
|
|
In article 1180652093.532303.124... (AT) d30g2000prg (DOT) googlegroups.com>gpica... (AT) gmail (DOT) c om wrote: I would like to ask for help with calculating for a person'sage withthe new versions of filemaker. With the new database I am trying to develop, I need to calculate theageof a person from date of birth. Looking through the older threads, I found the functions TODAY, and Status(CurrentDate) being recommended. However, when I try to use either of these in a calculation, it aways says "unable to find function" or in the case ofcurrentdate, "unable to find specified field". Is there a current simple calculation for it that will work? Thanks! For one thing, the Today function does not exist in FM 7+, nor is Status used any longer. The modern equivalent in 7+ is Get ( CurrentDate ). There are several Custom Functions for calculatingageat Brian Dunning.com (agebetween two dates,ageas of today, etc.), any of which can be used in a calculation field rather than as a CF. Matt -- I'm trying a new usenet client for Mac, Nemo OS X. You can download it athttp://www.malcom-mac.com/nemo |
![]() |
| Thread Tools | |
| Display Modes | |
| |