Accessing a Disc Drive (Folder Content)

Kobus-Dippenaar

Registered User.
Local time
Tomorrow, 00:04
Joined
Oct 10, 2014
Messages
50
Good day to you all,
I need a facility in the access VBA coding to check if a directory exist.
I it does exist, I need to open it and check for a specific file.
Or if the directory (folder) exist, to determine or display folders within.

I hope someone can help me in this regard.

Much appreciated.

Blessings.
 
if len(Dir("c:\sample\db", vbDirectory) <> 0
'if the return length is not zero, directory exists
else
'directory does not exists
end if
 
Check the Dir function: it does every thing you need...
 

Users who are viewing this thread

Back
Top Bottom