I have a query that shows date of birth from a field and calculates age as a variant with a simple function:
[Age]: fn_Age([DOB])
If any record in the table contains a null [DOB], the query rejects all sorts based on the [Age] field.
I’ve tried using the ‘Is Not Null’ criteria on [DOB], but still get the “Data type mismatch in criteria expression” error.
Any suggestion?
[Age]: fn_Age([DOB])
If any record in the table contains a null [DOB], the query rejects all sorts based on the [Age] field.
I’ve tried using the ‘Is Not Null’ criteria on [DOB], but still get the “Data type mismatch in criteria expression” error.
Any suggestion?
Comment