Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find ages 10-20 during 2002

Status
Not open for further replies.

MaggieLeatherman

Programmer
May 9, 2004
59
US
Hi

I need to query to find how many members from Members table were between 10 and 20 years old in 2002.

Not sure how to begin. Thanks, Maggie
 
If you want to see those records:

SELECT
Table1.*
FROM
Table1
WHERE
(((Table1.dob)
Between #1/1/1982# And #12/31/1992#));

If you want to count those records:

SELECT
Count(Table1.ID) AS CountOfID
FROM
Table1
WHERE
(((Table1.dob) Between #1/1/1982# And #12/31/1992#));



HTH
 
Thanks for the info.
I need to narrow down the year to 2002.
How would that work?
 
I thought I did that. This record set represents all of those who, in 2002, where between the ages of 10 and 20.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top