Hi,
I have some vba code which copies the current database to an archive directory and zips it up and renames it with a date/time stamp.
This archiving code is initiated on a daily basis therefore as you can imagine the number of archive files will soon add up. I want to be able to add code so that any old archive files, say 20 days old, is deleted, and therefore keeping the number of files archived to a minimum.
Is there any access code which will check the date/time of when the file was created so that I can check and see how old it is in order to determine whether to delete the file or not?
Cheers.
I have some vba code which copies the current database to an archive directory and zips it up and renames it with a date/time stamp.
This archiving code is initiated on a daily basis therefore as you can imagine the number of archive files will soon add up. I want to be able to add code so that any old archive files, say 20 days old, is deleted, and therefore keeping the number of files archived to a minimum.
Is there any access code which will check the date/time of when the file was created so that I can check and see how old it is in order to determine whether to delete the file or not?
Cheers.