Differents totals for each year of birth within a Field.

J

Joe T

I use MS Office 2007 Access. I have a Table with a Field Data type: Number,
with an Input Mask of: 0000 for the Birth Year of each of our member; over
1,000 members (records). In a Query if possible I would like to have a total
records for each year of birth. What is the best way to do it? Thankyou.
 
T

Tom Wickerath

Hi Joe,

Create a query and flip to SQL view. Use the following SQL statement, where
[FieldName] and [YourTableName] are the names of the field and table,
respectively:

SELECT [FieldName], Count([FieldName]) AS NumMembers
FROM [YourTableName]
GROUP BY [FieldName]
ORDER BY [FieldName]



Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 
J

Joe T

Good morning Tom,

I tried it and it works: EXACTLY what I was looking for. Thankyou for your
time.

Joe T


Tom Wickerath said:
Hi Joe,

Create a query and flip to SQL view. Use the following SQL statement, where
[FieldName] and [YourTableName] are the names of the field and table,
respectively:

SELECT [FieldName], Count([FieldName]) AS NumMembers
FROM [YourTableName]
GROUP BY [FieldName]
ORDER BY [FieldName]



Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________

Joe T said:
I use MS Office 2007 Access. I have a Table with a Field Data type: Number,
with an Input Mask of: 0000 for the Birth Year of each of our member; over
1,000 members (records). In a Query if possible I would like to have a total
records for each year of birth. What is the best way to do it? Thankyou.
 

Ask a Question

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.

Ask a Question

Top