A family of Microsoft relational database management systems designed for ease of use.
Microsoft Access DateDiff function is not working
Hallo everyone. I'm using the DateDiff function to calculate the age of members in the table. But it is not working. An error message keeps coming which says: "The expression DateDiff("yyyy",[date_of_birth],Now()) cannot be used in a calculated column." I set the data type of the age field to "Calculated". And even if I use:
Year(Now())-Year([date_of_birth])
It gives the same error.
What is the mistake I am doing?
Microsoft 365 and Office | Access | For home | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.