Original Post
The situation is as follows:
I have a table that contains all entrties for a given Type each of which has a YearOfInstallation value and a couple of properties I need to use to classify them by, like this:
Length [other properties] YearOfInstallation ... ... ... 1300 ... 1982 815 ... 1991 1900 ... 1993 1600 ... 2002 ... ... ...I need to construct a query in MS Access that creates a number of groups from the data in the table:
Group SumOfLength ... ... 1980-1990 1300 1991-2000 2715 2001-2003 1600 ... ...The easiest way to do this is by creating a separate query for each of the groups, but it seems awfully inefficient. I can't figure out if it's impossible to create such a query (since adding several where-conditions into the SQL statement in different places is illegal) or I have to use some advanced techniques. Access wizard fails hopelessly in this case. Additionally - it is not possible to create automated parametrized queries for reports (which is the case). I'd appreciate some help (running on a deadline - god I hate clients that make up stuff on the go...). Crispy EDIT: formatting [edited by - crispy on March 18, 2003 8:11:12 AM]