Has anybody encountered any problem with the Execute method or
FilesFound property of the FileSearch object in Access 2002? I have
this short routine that searches for a specific file that I'm having
problem with:
------
Dim fs, Flag as Integer
Set fs = Application.FileSearch
With fs
.LookIn = "C:\Temp"
.FileName="Test.mdb"
'.Execute
'If .FilesFound.Count = 0 Then
If .Execute() = 0 Then
Flag = 0
Else
Flag = 1
End if
Debug.Print Flag
End With
------
The routine works on several machines except on one particular laptop.
There are no error messages and I am positive the file exists but it
seems the routine can't find the file. The Debug.Print always returns
0. I've tried other files in other locations but it still won't work
on this one particular machine.
I'd appreciate very much any ideas to resolve this. Thanks.
Wilson Tan