I keep having an error occurring when I use this module and I cant work out why, I have made reference to the Microsoft scripting runtime etc can anyone help please
Function CopyFolder()
Dim fso As Scripting.FileSystemObject
Dim sSourceDir As String, sDestinationDir As String
Setfso = New Scripting.FileSystemObject
sSourceDir = Forms!Project_Numbers_1!Quote_File_Directiry_Ref
sDestinationDir = Forms!Project_Numbers_1!Files_Directory
fso.CopyFile sSourceDir, sDestinationDir, True
MsgBox "Files copied"
End Function
The error I get is as follows
Run Time Error '438'
object does not support this property or method
I thought I had this cracked ready for presentation tomorrow and am now panicing a bit if anyone can help please do......
Function CopyFolder()
Dim fso As Scripting.FileSystemObject
Dim sSourceDir As String, sDestinationDir As String
Setfso = New Scripting.FileSystemObject
sSourceDir = Forms!Project_Numbers_1!Quote_File_Directiry_Ref
sDestinationDir = Forms!Project_Numbers_1!Files_Directory
fso.CopyFile sSourceDir, sDestinationDir, True
MsgBox "Files copied"
End Function
The error I get is as follows
Run Time Error '438'
object does not support this property or method
I thought I had this cracked ready for presentation tomorrow and am now panicing a bit if anyone can help please do......