Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

test for existance of file by extension

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BobbyS - 09 Jan 2006 01:48 GMT
How do I test for the existance of files with a .txt in a given folder?

Thank you.
Marshall Barton - 09 Jan 2006 03:13 GMT
>How do I test for the existance of files with a .txt in a given folder?

Dir(strPath & "\*.txt") will take care of this.  It returns
a zero length string if there is no file to find, or the
first file name if one is found (subsequent calls to Dir()
will return the next file name that matches).

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.