Copy this function to a module:
'***************** Code Start *******************
'Check to see if a File exists
'
Function fIsFile(stPath As String) As Boolean
'Fully qualify stPath
'To check for a file example
' fIsFile("C:\FolderName\FileName.doc")
'
On Error Resume Next
fIsFile = Len(Dir(stPath)) > 0
End Function
'***************** Code End *********************
Here is an example of usage:
If fIsFile("C:\YourFileName.txt") Then
MsgBox "File Exists"
Else
MsgBox "File Does Not Exist"
End If
HTH
RDH