Hi Pol,
You should not need a separate field for the year, as long as you are
storing the date, since you can always derive this information from the date.
Storing both risks the possibility of errors (for example, year = 2007, but
date = 02-01-2008.....in this case, which year is the correct year?). Also,
be aware that both Year and Date are considered reserved words. You should
avoid using any reserved words for things that you assign a name to within
Access (fields, tables, queries, forms, reports, macros, modules, variables,
controls, etc.). I suggest that you take a look at this list, and consider
downloading the free tool available:
Problem names and reserved words in Access
http://allenbrowne.com/AppIssueBadWord.html
Finally, to answer your question, it appears as if you want a crosstab type
result:
Crosstab Queries
http://www.access.qbuilt.com/html/crosstab_queries.html
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________