J
Josie
Can someone tell why this code does not work:
Dim FromDir As String, ToDir As String
Dim Source As String, Target As String
ToDir = DLookup("PropertyPath", "MyFirm")
FromDir = DLookup("PhotoPath", "MyFirm")
Source = FromDir & "\test.jpg"
MsgBox Source - folder & file name shows correct
Target = ToDir & "\test.jpg"
MsgBox Target - folder & file name shows correct
FileCopy Source, Target
Nothing is copied
Thanks in advance
Josie
Dim FromDir As String, ToDir As String
Dim Source As String, Target As String
ToDir = DLookup("PropertyPath", "MyFirm")
FromDir = DLookup("PhotoPath", "MyFirm")
Source = FromDir & "\test.jpg"
MsgBox Source - folder & file name shows correct
Target = ToDir & "\test.jpg"
MsgBox Target - folder & file name shows correct
FileCopy Source, Target
Nothing is copied
Thanks in advance
Josie