May 25, 2004 #1 breukelen Technical User Oct 31, 2001 54 NL I am trying to copy a file by clicking a button : Private Sub Command4_Click() FileSystemObject.CopyFile "d:\neurotest.mdb", "d:\my documents\" End Sub The above does not work. Would appreciate some help. Gunter
I am trying to copy a file by clicking a button : Private Sub Command4_Click() FileSystemObject.CopyFile "d:\neurotest.mdb", "d:\my documents\" End Sub The above does not work. Would appreciate some help. Gunter
May 25, 2004 #2 TCARPENTER Programmer Mar 11, 2002 766 US Try this: Private Sub Command4_Click() Dim fs Set fs = CreateObject("Scripting.FileSystemObject") fs.CopyFile "d:\neurotest.mdb", "d:\my documents\" End Sub HTH Todd Upvote 0 Downvote
Try this: Private Sub Command4_Click() Dim fs Set fs = CreateObject("Scripting.FileSystemObject") fs.CopyFile "d:\neurotest.mdb", "d:\my documents\" End Sub HTH Todd
May 25, 2004 Thread starter #3 breukelen Technical User Oct 31, 2001 54 NL Thank you very much for your help. Works fine. best regards , Gunter Upvote 0 Downvote