Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Verifying the existence of a directory

Status
Not open for further replies.

chell

Programmer
Oct 26, 2000
30
US
Hello;

I'm writing an app in Access VBA and I need to verify the existence of a directory as supplied by the user. The DIR function works fine except that it won't work with something like "\\Server1\ADirectory". Does anybody have any ideas?

Thanks For The Help...
Chell
 
do you know the FileSystemObject ?
try this, it works with remote folder
FileSystemObject provides a lot of methods and property for file system

Public Sub essai()
Dim fso As New FileSystemObject
MsgBox fso.FolderExists("\\SOB-IDS2\SILS")
End Sub

Microsoft scripting Runtime must be selected in reference library.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top