Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formulaic print date 1

Status
Not open for further replies.

ImArchimedes

Technical User
Sep 25, 2007
62
So, I've written a formula to determine age of a person. The only piece I'm missing is the current date to run against the date of persons birth. I know how to pull the printdate field into a report by it's self but does anyone know how I would pull that into a formula? Thank you for your help.
 
In the formula editor, under Date & Time functions you can find 'CurrentDate' function.

In the formula editor, under Document Properties functions,
you can find others like PrintDate, DataDate, ...

Andy
 
What formula did you use to calculate the age? There are several out there that don't work as accurately as they should. The one we recommend is
if Month({Birthdate}) < Month(CurrentDate) OR
(Month({Birthdate)) = month(CurrentDate) AND
Day({Birthdate)) <= Day(CurrentDate)))
Then Year(CurrentDate) - Year({Birthdate})
Else Year(CurrentDate) - Year({Birthdate}) - 1

Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top