I'm not sure if this function is good practice or not, but I use it

VB Code:
  1. If FileExists(App.Path & "\filename") Then Kill (App.Path & "\filename")
  2.  
  3. Private Function FileExists(ByVal File As String) As Boolean
  4. Dim fLen As Integer
  5.    
  6.     On Error Resume Next
  7.     fLen = Len(Dir$(File))
  8.     If Err Or fLen = 0 Then
  9.         FileExists = False
  10.     Else
  11.         FileExists = True
  12.     End If
  13.  
  14. End Function

Only use App.Path if you want to search for the file where your exe resides. Obviously ByVal or ByRef is a choice you will make.