Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Convert birthdate into age.

Posted on 2006-10-31
6
Medium Priority
?
1,302 Views
Last Modified: 2012-06-21
Here's what I am using..  Truncate((CurrentDate - {ScheduleAllocations.Birthdate}) / 365.25)  I see that this works for some..  No errors, but the formula tree does not have a "check" on it??  Hope that makes sense.. thanks in advance..
0
Comment
Question by:louy3
6 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 800 total points
ID: 17842425
Not sure what you mean by a CHECK on the formula tree.

You could also use
Truncate(DateDiff('y',CurrentDate,{ScheduleAllocations.Birthdate})

mlmcc
0
 
LVL 6

Assisted Solution

by:Ken Turner
Ken Turner earned 800 total points
ID: 17842605
Could the lack of a "check" on the formula tree be because you've created the formula, but you haven't placed it on your report (or used it in another formula)?
0
 
LVL 28

Assisted Solution

by:bdreed35
bdreed35 earned 400 total points
ID: 17842947
In order for a field to have the green check mark, you have to use it somewhere on the report.  Just because you create it, doesn't mean the report will use it.
As far as the formula goes for age, the only accurate method I know of to get the age is found here on Ken Hamady's site: http://kenhamady.com/form06.shtml
The method you are using will be accurate most of the time but could be off as much as 1 day a year.
0
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

 
LVL 9

Author Comment

by:louy3
ID: 17844051
Still not working...but closer.  Age is coming up with a number..  30166
0
 
LVL 28

Expert Comment

by:bdreed35
ID: 17844238
Did you try it with the formula from the link I posted:

WhileReadingRecords;
DateVar Birth:= {ScheduleAllocations.Birthdate};
DateVar Ann := CurrentDate;
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)  
then Year (Ann) - Year(Birth)  
else Year (Ann) - Year(Birth) -1
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 17844400
Glad i could help

mlmcc
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question