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

How can I determine is a file is resident ??? 1

Status
Not open for further replies.

Dylan

MIS
Aug 27, 1998
109
US
Iam using access 97 and need to figure out how to write some code that will determine whether a file exists on a network drive prior to writing code to do an importtext type of function. I have been looking at the FileSearch object but have not been able to get it to work.<br>
Is there an easy way of doing this ????<br>
<br>
Thanks in Advance ...
 
Use the Dir function. An empty string will be returned if the file does not exist. Sample follows:<br>
<br>
strMsg = Dir(strArgPath)<br>
<br>
If strMsg = "" Then<br>
error...<br>
<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top