D
Daniel W
I want to calculate age, and then sort by that age and/or select only a
certain age range for output in my query. To calculate age in a query, I am
using DateDiff("yyyy",[DateOfBirth],Now()). The resultant age is correct,
however, I am unable to enter criteria or sort without receiving a data
mismatch error. I've tried numeric, text, and date formats in the event I
set the type wrong somewhere. I've also tried using a query that calculated
age as input into another query in which I'd enter the criteria, but I still
receive the data mismatch error.
certain age range for output in my query. To calculate age in a query, I am
using DateDiff("yyyy",[DateOfBirth],Now()). The resultant age is correct,
however, I am unable to enter criteria or sort without receiving a data
mismatch error. I've tried numeric, text, and date formats in the event I
set the type wrong somewhere. I've also tried using a query that calculated
age as input into another query in which I'd enter the criteria, but I still
receive the data mismatch error.