G
Guest
Hi
I found a posting from lastyear which explained how to find the last
occurrence of a record using the date (Max) in an Access 2000 database. I
copied the sql code and tried to utilise it in my application however the
query seems to loop continuously finally hanging up access.I can't find the
original posting to confirm the original sql or contact the person who posted
it I have played around with it to no avail...any help would be
appreciated....
The Sql is as follows:
SELECT *
FROM [COLLECTION DATA] AS T
WHERE (((T.COLLECTION_DATE)=(SELECT Max(X.[COLLECTION_DATE])
FROM [COLLECTION DATA] AS X
WHERE X.SITE_ID = T.SITE_ID)));
Regards
Steve
I found a posting from lastyear which explained how to find the last
occurrence of a record using the date (Max) in an Access 2000 database. I
copied the sql code and tried to utilise it in my application however the
query seems to loop continuously finally hanging up access.I can't find the
original posting to confirm the original sql or contact the person who posted
it I have played around with it to no avail...any help would be
appreciated....
The Sql is as follows:
SELECT *
FROM [COLLECTION DATA] AS T
WHERE (((T.COLLECTION_DATE)=(SELECT Max(X.[COLLECTION_DATE])
FROM [COLLECTION DATA] AS X
WHERE X.SITE_ID = T.SITE_ID)));
Regards
Steve