Testing for a path string

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What's the easiest way to check if a named path string exists ? (Boolean
 
I assume you mean you want to test if a file (that's specified in a string)
actually exists.
If Dir(strPath, vbNormal) <> "" Then
MsgBox "The path exists"
Else
MsgBox "The path doesn't exist"
End If

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

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

Back
Top