A
antmorano
Hello All:
I am relatively new at creating databases and I have hit a snag
creating a database for retirees. One of the fields that I have on my
form is called "Retiree Age" I figured out how to get Access to only
calculate the age up to the DOD for the retiree. However, not every
retiree has a DOD. If this is the case then I need the age to be
calculated at now. I am figuring that that is a complex if statement
but I haven't figured out how to word it correctly.
This is what I really want it to do: If Retiree DOD=Null then
subtract Retiree DOD from Now, but if Retiree DOD="mm/dd/yyyy"
subtract Retiree DOB from Retiree DOD.
Any input would be greatly appreciated. I am also looking into doing
it in a VBA code, but can't figure that out either.
I am relatively new at creating databases and I have hit a snag
creating a database for retirees. One of the fields that I have on my
form is called "Retiree Age" I figured out how to get Access to only
calculate the age up to the DOD for the retiree. However, not every
retiree has a DOD. If this is the case then I need the age to be
calculated at now. I am figuring that that is a complex if statement
but I haven't figured out how to word it correctly.
This is what I really want it to do: If Retiree DOD=Null then
subtract Retiree DOD from Now, but if Retiree DOD="mm/dd/yyyy"
subtract Retiree DOB from Retiree DOD.
Any input would be greatly appreciated. I am also looking into doing
it in a VBA code, but can't figure that out either.