Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy files using access 1

Status
Not open for further replies.

ianbar

Technical User
Jan 10, 2003
69
GB
I would like a button that a user can click on my form, that when clicked copies files from one directory on the network to another. Is this possible and if so how?
 
FYI

You can do a lot more with the FSO eg you could check that the folders exist before the copy...

If objFSO.FolderExists(Me!OFT_Temp_Folder) And objFSO.FolderExists(Me!OFT_Dest_Folder) Then
'Do the copy bit
Else
'Error message
End If

This would get round the problem of wrong file paths being entered.



There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top