Verify file exists before moving it

  • Thread starter Thread starter Pastor Del
  • Start date Start date
P

Pastor Del

My DB will move files from folder to folder depending on selections made by
user. For maintain a professional look I want to verify that the file exists
before I try to move it. What code can I use?
 
If Len(Dir(Folder_Path_And_File_Name)) > 0 Then
' your file exists
Else
' it doesn't
End If

--JP
 
Back
Top