General
cancel
Showing results for 
Search instead for 
Did you mean: 

KILL don't kill in VBA (Access 2000) with XP

Mr GOMEZ Bruno
Occasional Visitor

KILL don't kill in VBA (Access 2000) with XP

Hello
With Windows 98, KILL remove
With XP, KILL don't remove !
Do you know that ?
Merci
1 REPLY
Archunan Muthiah
Honored Contributor

Re: KILL don't kill in VBA (Access 2000) with XP

Hi,
there are so many ways, you follow this...

Sub Macro11()
Dim aFile As String
aFile = Dir("c:\temp\*.*", vbNormal)
While aFile <> ""
Kill "c:\temp\" & aFile
aFile = Dir
Wend
End Sub


Archunan
God is Artist, we are all just brushes