Hello,
I got great tips from this thread referenced below, but it only gave me whole numbers and I can't seem to find where in the formula to insert coding that makes it turn into decimals instead of whole numbers. I need to add 3 months to the birth date, but still have the new number come out with the Age + whatever months are left over into a decimal. Any thoughts? Thanks!
Here is the formula I used:
WhileReadingRecords;
DateVar Birth:= date({StsSt.StsSt_Birthdate});
DateVar Ann := date(DateAdd ("m",3 ,CurrentDate));
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
thread767-1534223
I got great tips from this thread referenced below, but it only gave me whole numbers and I can't seem to find where in the formula to insert coding that makes it turn into decimals instead of whole numbers. I need to add 3 months to the birth date, but still have the new number come out with the Age + whatever months are left over into a decimal. Any thoughts? Thanks!
Here is the formula I used:
WhileReadingRecords;
DateVar Birth:= date({StsSt.StsSt_Birthdate});
DateVar Ann := date(DateAdd ("m",3 ,CurrentDate));
if (Month(Ann) * 100) + Day (Ann) >=(Month(Birth) *100) + Day (Birth)
then Year (Ann) - Year(Birth)
else Year (Ann) - Year(Birth) -1
thread767-1534223