AccessGuruCarl
Programmer
Hello,
How can I keep only 2 or 3 of the most recent files, and delete the rest.
I have an .mdb file ToolingFE.mdb(developers copy)
Which is copied to user folders when ever he makes code or form changes. If the file is not in use, it renames the file to the current date, removing the '/' and then copies the new file into users folder. - The Code Link Below...
The users folders will have files named as such,
ToolingFE.mdb, 2112007.mdb, 312007.mdb, 3222007.mdb, ect...
where the number format is date without the slashes.
What I need to do is:
Right after renaming the ToolingFE.mdb with the date, I want to delete everything else, but the 3 most recent copies. Then copy the new file in. This way the user can still have a copy of his last version, and the 2 previous.
Currently I'm using this script from an earlier post to rename and copy the file, and would like to expand on it to delete the old files.
Any Idea's.... Anyone.........
Thanks,
AccessGuruCarl
Programmers helping programmers
you can't find a better site.
How can I keep only 2 or 3 of the most recent files, and delete the rest.
I have an .mdb file ToolingFE.mdb(developers copy)
Which is copied to user folders when ever he makes code or form changes. If the file is not in use, it renames the file to the current date, removing the '/' and then copies the new file into users folder. - The Code Link Below...
The users folders will have files named as such,
ToolingFE.mdb, 2112007.mdb, 312007.mdb, 3222007.mdb, ect...
where the number format is date without the slashes.
What I need to do is:
Right after renaming the ToolingFE.mdb with the date, I want to delete everything else, but the 3 most recent copies. Then copy the new file in. This way the user can still have a copy of his last version, and the 2 previous.
Currently I'm using this script from an earlier post to rename and copy the file, and would like to expand on it to delete the old files.
Any Idea's.... Anyone.........
Thanks,
AccessGuruCarl
Programmers helping programmers
you can't find a better site.