A family of Microsoft relational database management systems designed for ease of use.
What message do you receive?
For one thing you don't need the brackets
Dim stPad As String
'TEMP map leegmaken
stPad = "W:\Kwaliteit\Dirk\ANALYSECERTIFICATEN\TEMP\"
If Dir(stPad & "\*.?\*") <> "" Then
Kill stPad & "\*.\*"
Else
End If
What exactly are you trying to do? Perhaps we can offer a better way to accomplish it.
Not sure I understand what you're trying to do with "*.?*", why not simply "*.*" like in your Kill statement? If you're looking for files with extension, then I'd assume that's what you also want to delete, no? So I'd match my Dir() pattern with my Kill pattern normally, such as:
Dim stPad As String
'TEMP map leegmaken
stPad = "W:\Kwaliteit\Dirk\ANALYSECERTIFICATEN\TEMP\"
If Dir(stPad & "\*.?\*") <> "" Then
Kill stPad & "\*.?\*"
Else
End If
or
Dim stPad As String
'TEMP map leegmaken
stPad = "W:\Kwaliteit\Dirk\ANALYSECERTIFICATEN\TEMP\"
If Dir(stPad & "\*.\*") <> "" Then
Kill stPad & "\*.\*"
Else
End If
(sorry about the formatting the editor's code block is making the VBA all on one line so I had to use standard which remove all indenting)