SysCmd?

T

Turner

I am looking for a command that will tell me if a
specific Access db is available ("C:\Path\DbName").

I had thought SysCmd was it but after reading the help
files it doesn't seem to do the job.

Thanks

Dean
 
D

Dirk Goldgar

Turner said:
I am looking for a command that will tell me if a
specific Access db is available ("C:\Path\DbName").

I had thought SysCmd was it but after reading the help
files it doesn't seem to do the job.

Thanks

Dean

I'm not sure what you mean by "available". If you explain that, maybe
we can suggest something.
 
A

Allen Browne

Public Function FolderExists(varPath As Variant) As Boolean
On Error Resume Next
If Len(varPath) > 0& Then
FolderExists = (Len(Dir$(varPath, vbDirectory)) > 0&)
End If
End Function
 

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