Oct 8, 2001 #1 ziwacky Programmer Joined Jun 27, 2000 Messages 43 Location US Hi there, Is there any function that will tell me if the user entry (to a textbox, so it is a string) is a file. Maybe something like IsFile(txtFile). Thanks, Z
Hi there, Is there any function that will tell me if the user entry (to a textbox, so it is a string) is a file. Maybe something like IsFile(txtFile). Thanks, Z
Oct 8, 2001 #2 sdimov Programmer Joined Jul 20, 2001 Messages 22 Location US Dim sFile as String sFile="c:\temp\MyFile.txt" If Len(Dir(sFile))>0 Then 'File exists Else 'File does not exist End If Upvote 0 Downvote
Dim sFile as String sFile="c:\temp\MyFile.txt" If Len(Dir(sFile))>0 Then 'File exists Else 'File does not exist End If