Hi all,
I'm trying to append to a table records from a query where only the records which have changed since the last time the query was run are appended.
I have a query which counts and displays the number of animals in a specific colony (based on a table CALLED "MostRecentColony" where the fields are [PREVIOUS_COLONY], [CURRENT_COLONY] and [ANIMAL_ID]), excluding those whose [CURRENT_COLONY] is recorded as "Dead".
Code:
SELECT MostRecentColony.[CURRENT_COLONY], Count(MostRecentColony.[CURRENT_COLONY]) AS [CountOfCURRENT_COLONY]
FROM MostRecentColony
GROUP BY MostRecentColony.[CURRENT_COLONY]
HAVING (((MostRecentColony.[CURRENT_COLONY])<>"dead"));
I want to have a table which displays this data and is appended to, but only when the colony size (ie [CountOfCURRENT_COLONY] has changed since the last time the query was run. In this way I will be able to keep a running track of how colony sizes have changed over time.
Any ideas?
M