Lisa_King_3
New Member
- Joined
- Jan 26, 2004
- Messages
- 39
Hi people, i am trying to perform a query that searchs a table of members for people between a minimum age and maximum age (the age is calculated by their date of birth and the current date)
Problem: The query performs fine except the resulting age is wrong, it is always 1 year more than it should be, e.g. a member is only 17, and yet the result of the query shows them to be 18.
The field name I have used is :
Expr1: DateDiff("yyyy",[DateOfBirth],Now())
And the criteria is:
Between [Enter Minimum Age] And [Enter Maximum Age]
Can anyone shine any light on how to alter the filed formula so that it correctly works out members age depending on their date of birth and the current date?
Lisa x
Problem: The query performs fine except the resulting age is wrong, it is always 1 year more than it should be, e.g. a member is only 17, and yet the result of the query shows them to be 18.
The field name I have used is :
Expr1: DateDiff("yyyy",[DateOfBirth],Now())
And the criteria is:
Between [Enter Minimum Age] And [Enter Maximum Age]
Can anyone shine any light on how to alter the filed formula so that it correctly works out members age depending on their date of birth and the current date?
Lisa x