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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for Path Validity 1

Status
Not open for further replies.

gr8whitewaldron

Technical User
Aug 6, 2003
25
0
0
US
I am working on a database in which the user types in a path and the corresponding database is linked, processed, and deleted. I want check if the path actually does point to a file or not, in the case of misspellings or what have you. Is there a VB function for this?
 
you can try the Dir function :

dim str as string
str = Dir(yourPath)

If the path doesn't exists, the function will return ""
Else ... I don't really remember, it just return something different from ""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top