Q: FileExits

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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,
 
I think you meant FileExists, NOT FileExits.

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

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

Back
Top