J
jb
I have:
TblPrecipitation
Year
Month
PrecipValue
I would like Access to calculate the water year
precipitation for several years. This is accomplished by
adding the last three months of one year to the next
seven months of the following year. I can do this
individually for each year, but I am looking for a query
design that will allow me to calculate the water year
precipitation for 10 years at a time.
I tried adding the three fields of my table to the query
design two times. For example, I added Year with the
criteria of "1980" and Month with criteria of "10 or 11
or 12" and on the second criteria line I added "1981" in
Year and "1 or 2 or 3 or 4 or 5 or 6 or 7" in month.
This works fine for the water year for 1981, but I would
like to be able to calculate the water year precip for
1981, 1982, 1983...1990 in one query. I tried adding
three fields of TblPrecip for the 1981 calculation and
adding the three fields again for the 1982 calculation.
Access will not to that. I have not figured it out.
If I am able to get the data for all 10 years in one
query. I think I will need to write a second query to
sum the values for each year.
Any suggestions, or is this just not the way Access works?
TblPrecipitation
Year
Month
PrecipValue
I would like Access to calculate the water year
precipitation for several years. This is accomplished by
adding the last three months of one year to the next
seven months of the following year. I can do this
individually for each year, but I am looking for a query
design that will allow me to calculate the water year
precipitation for 10 years at a time.
I tried adding the three fields of my table to the query
design two times. For example, I added Year with the
criteria of "1980" and Month with criteria of "10 or 11
or 12" and on the second criteria line I added "1981" in
Year and "1 or 2 or 3 or 4 or 5 or 6 or 7" in month.
This works fine for the water year for 1981, but I would
like to be able to calculate the water year precip for
1981, 1982, 1983...1990 in one query. I tried adding
three fields of TblPrecip for the 1981 calculation and
adding the three fields again for the 1982 calculation.
Access will not to that. I have not figured it out.
If I am able to get the data for all 10 years in one
query. I think I will need to write a second query to
sum the values for each year.
Any suggestions, or is this just not the way Access works?