I've checked the searches for my particular dilemma, but can only find how to calculate ages. One of my fields in the table is the DOB (date of birth). My report has an unbound textbox called CurrentAge with this code in the control source:
All the ages display just fine in the report. But in my report, I need to display people aged 18 and older. I've tried placing the [CurrentAge] >=18 parameter in the filter property on the report, but doesn't work. Would code work better? Any suggestions or help is really appreciated.
Code:
=IIf(Not IsNull([DOB]),Fix((Now()-[DOB])/365.25))
All the ages display just fine in the report. But in my report, I need to display people aged 18 and older. I've tried placing the [CurrentAge] >=18 parameter in the filter property on the report, but doesn't work. Would code work better? Any suggestions or help is really appreciated.