Sure. Add a new column to your query to calculate age...
PersonAge:
DateDiff("yyyy",[Birthdate],Date())+(Format([Birthdate],"mmdd")>Format(Date(
),"mmdd"))
That second line should all be placed in the "Field:" of your query....
PersonAge: DateDiff("...
Rick B
Rick B said:
Sure. Add a new column to your query to calculate age...
PersonAge:
DateDiff("yyyy",[Birthdate],Date())+(Format([Birthdate],"mmdd")>Format(Date(
),"mmdd"))
Far better would be to figure out 70 years prior to today, and check for
birthdays prior to that.
WHERE [Birthdate] <= DateAdd("yyyy", -70, Date())
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Rick B said:
Sure. Add a new column to your query to calculate age...
PersonAge:
DateDiff("yyyy",[Birthdate],Date())+(Format([Birthdate],"mmdd")>Format(Date(
),"mmdd"))
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.