Code: Select all
Function DoesFileExist(strFileIN as String) as Boolean
if Dir(strFileIn) <> "" then
DoesFileExist = True
else
DoesFileExist = False
End IF
End Function
Why would that be and how do I correct it?
Thanks!
Code: Select all
Function DoesFileExist(strFileIN as String) as Boolean
if Dir(strFileIn) <> "" then
DoesFileExist = True
else
DoesFileExist = False
End IF
End Function
Code: Select all
Function DoesFileExist(strFileIN As String) As Boolean
On Error Resume Next
If Dir(strFileIN) = "" Then
DoesFileExist = False
Else
DoesFileExist = True
End If
End Function