Hi
Anyone have any idea why the code belwo works for all my network drives but not if I do a search in the C: hard drive?
With Application.FileSearch
.LookIn = "C:\TEMP"
.FileName = "*.mdb"
If .Execute() > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
Else
MsgBox "There were no files found."
End If
End With
Anyone have any idea why the code belwo works for all my network drives but not if I do a search in the C: hard drive?
With Application.FileSearch
.LookIn = "C:\TEMP"
.FileName = "*.mdb"
If .Execute() > 0 Then
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
Else
MsgBox "There were no files found."
End If
End With