Hello Access Braintrust,
I have a table [Project Costs] which will be regularly updated with the most current information from our accounting files. I have included a Report Date with each entry so that I can tell what is the most up-to-date info. I have been able to create a query that will show only the most recently reported entries:
What I have not been able to figure out is how to DELETE all the records except for the most recent that is returned by that query.
I am most certainly open to any and all solutions to remove the older entries from the table. I do not need to "archive" the old data since it is no longer relevant once there are updated numbers and since the db is backed up before entering any of the updated information.
Thank you in advance once again!
I have a table [Project Costs] which will be regularly updated with the most current information from our accounting files. I have included a Report Date with each entry so that I can tell what is the most up-to-date info. I have been able to create a query that will show only the most recently reported entries:
Code:
SELECT
[Project Costs].ProjectID,
Max([Project Costs].[Report Date]) AS [Date_Reported]
FROM [Project Costs]
GROUP BY ProjectID
What I have not been able to figure out is how to DELETE all the records except for the most recent that is returned by that query.
I am most certainly open to any and all solutions to remove the older entries from the table. I do not need to "archive" the old data since it is no longer relevant once there are updated numbers and since the db is backed up before entering any of the updated information.
Thank you in advance once again!