Testing for a path string

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top