Q: FileExits

J

JIM.H.

Hello,

It seems If FileExits (“FilePathNameâ€) does not work if I have
FilePathName=â€c:\Doc\*.txtâ€

How can I check if any *.txt exists in the c:\Doc\ in my code?

Thanks,
 
V

Van T. Dinh

I think you meant FileExists, NOT FileExits.

You cannot use wildcards with FileExists. Check Access VB Help on the Dir()
function instead.
 
Top