FileSearch Problem

M

Mark

Hi,
Can anyone please tell me why the following code works fine in
Win98/Access97, but fails to recognize files with a ".zip" extension in
WinXP/Access2002/2000? It correctly lists the name of each ".txt" file in
the folder.

....................
With Application.FileSearch
..FileName = "*.*"
..LookIn = "C:\_PriorAuth"
..SearchSubFolders = False
..Execute
For Each varItem In .FoundFiles
Debug.Print varItem
Next varItem
End With
......................

Thank you,
Mark
 
M

Mark

I found a reference to this problem in the Google Access newsgroup. It
appears that Access XP has problems with wildcards when using FileSearch.
But why it'll return the name of any text files, but not zip files, I don't
know.

I guess I can use Dir to populate a Temp table and then use that to supply
FileSearch with actual file names -- in order to get file size, etc.

If anyone has a better answer, please let me know.
Mark.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top