Hello,
I have created a cemetery database in Access 2003. I have three fields;
BirthDate, DeathDate, and Age.
Under properties in the AGE field in CONTROL I am using the following syntax:
=IIf([DeathDate],(DateDiff("m",[BirthDate],[DeathDate])\12 & " years and " & DateDiff("m",[BirthDate],[DeathDate]) Mod 12 & " month(s)"),"Living")
This works and gives me years and months results in my AGE field. I would like to add DAYS..ex.. 74 years, 5 months, and 7 days.
The "living" is when there is a birth date in the field but no death date. However, "living" shows up even if both fields are blank. Any help with that and adding "days" would be most appreciated.
Thanks,
m0aje
I have created a cemetery database in Access 2003. I have three fields;
BirthDate, DeathDate, and Age.
Under properties in the AGE field in CONTROL I am using the following syntax:
=IIf([DeathDate],(DateDiff("m",[BirthDate],[DeathDate])\12 & " years and " & DateDiff("m",[BirthDate],[DeathDate]) Mod 12 & " month(s)"),"Living")
This works and gives me years and months results in my AGE field. I would like to add DAYS..ex.. 74 years, 5 months, and 7 days.
The "living" is when there is a birth date in the field but no death date. However, "living" shows up even if both fields are blank. Any help with that and adding "days" would be most appreciated.
Thanks,
m0aje