R
Ryan Fisher
Hi there,
I have two tables in Access. The first table contains information on
visits to bird's nests. It contains fields: [VisitID], [NestID],
[WeatherStationID],[DateoftheVisit],[DateofPreviousVisit]. [VisitID]
is the identification code for the particular visit (autonumber field),
[NestId] is the identification code given to the particular nest,
[WeatherStationID] is the closest weather station, [DateoftheVisit] is
the date of the current visit (mm/dd/yyyy), and [DateofPreviousVisit]
(mm/dd/yyyy) is the date of the previous visit to the nest. The second
table contains information on daily precipitation from various weather
stations, so this table has three fields: [WeatherStationID], [Date]
(mm/dd/yyyy), and [Precipitation]. What I would like to do is get a
sum of precipitation between [DateofVisit] and [DateofPreviousVisit]
for each nest for the weather station that is closest to it. For
example, if a visit to a nest was conducted on 06/01/2004 and then on
06/05/2005, I would like to get a sum of precipitation for 06/01,
06/02, 06/03, 06/04, and 06/05 from the closest weather station (e.g.,
if precip was 5, 10, 1, 0, and 2, then my sum would be 18 for that
particular nest and visit). I hope I've included enough information
and in the correct format...kind of a newbie here.
Thanks!
I have two tables in Access. The first table contains information on
visits to bird's nests. It contains fields: [VisitID], [NestID],
[WeatherStationID],[DateoftheVisit],[DateofPreviousVisit]. [VisitID]
is the identification code for the particular visit (autonumber field),
[NestId] is the identification code given to the particular nest,
[WeatherStationID] is the closest weather station, [DateoftheVisit] is
the date of the current visit (mm/dd/yyyy), and [DateofPreviousVisit]
(mm/dd/yyyy) is the date of the previous visit to the nest. The second
table contains information on daily precipitation from various weather
stations, so this table has three fields: [WeatherStationID], [Date]
(mm/dd/yyyy), and [Precipitation]. What I would like to do is get a
sum of precipitation between [DateofVisit] and [DateofPreviousVisit]
for each nest for the weather station that is closest to it. For
example, if a visit to a nest was conducted on 06/01/2004 and then on
06/05/2005, I would like to get a sum of precipitation for 06/01,
06/02, 06/03, 06/04, and 06/05 from the closest weather station (e.g.,
if precip was 5, 10, 1, 0, and 2, then my sum would be 18 for that
particular nest and visit). I hope I've included enough information
and in the correct format...kind of a newbie here.
Thanks!