ummm... because FileExists expects to be given the full name of a single
file.
What are you wanting to do? Delete all files in a folder?
Yes Ken, I would like to delete all files with a mdb extension.
Bruce
> ummm... because FileExists expects to be given the full name of a single
> file.
[quoted text clipped - 11 lines]
> > fs.DeleteFile myDest & "*.mdb", True
> > End If
Ken Snell [MVP] - 26 Jul 2005 03:27 GMT
Then I would use a slightly different approach:
Dim strFile As String
strFile = Dir(myDest & "*.mdb")
Do While strFile <> ""
Kill myDest & strFile
strFile = Dir()
Loop

Signature
Ken Snell
<MS ACCESS MVP>
> Yes Ken, I would like to delete all files with a mdb extension.
>
[quoted text clipped - 16 lines]
>> > fs.DeleteFile myDest & "*.mdb", True
>> > End If