Listing files othe than .txt

K

KK

Within Access, I need to list all files in a directory that do not have a
".txt" extension. I was wondering what wild card specifications needs to be
given to Dir command to achieve this. Or may be there is soem other way to
do this

Thanks in advance
 
K

Ken Snell

I would not try to filter the Dir function. Go ahead and get all the files.
Then use code to test each filename for the presence of a ".txt" at the end
of the filename; if it's there, ignore it and go to the next one.
 

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