Deleting files in folder using Access

beatleman

Registered User.
Local time
Today, 03:42
Joined
Mar 28, 2007
Messages
21
Hey all. I have 3 files on my c:\ drive

work_040607.xls
work_050607.xls
work_060607.xls

What i would like to do when my access app starts, i click a button on my form and all work_*.xls files from my directory that have a date greater or before the current date are deleted.

So, if todays date is 06/06/07 all work files before or after the stated date are deleted. How do i do this? Any help appreciated.
 

Users who are viewing this thread

Back
Top Bottom