Verify file exists before moving it

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?
 
J

JP

If Len(Dir(Folder_Path_And_File_Name)) > 0 Then
' your file exists
Else
' it doesn't
End If

--JP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top