Hi ... I'm having some problems with the DateDiff command with the following scenario:
Need to work out if someones age is greater than for example 20 ... I am able to get to the following:
DateDiff("yyyy",[dateOfBirth],Now()) >=20
Unfortunately this only looks to the year calculation ... i.e. if someone enters a Date of Birth of 4th December 1983 then it will accept based on year calculation.
Is there a neat way to incorporate days and months to ensure the >= 20 years old rule is valid?
Any help would be appreciated...
SP
Need to work out if someones age is greater than for example 20 ... I am able to get to the following:
DateDiff("yyyy",[dateOfBirth],Now()) >=20
Unfortunately this only looks to the year calculation ... i.e. if someone enters a Date of Birth of 4th December 1983 then it will accept based on year calculation.
Is there a neat way to incorporate days and months to ensure the >= 20 years old rule is valid?
Any help would be appreciated...
SP