Poweruser99
MIS
I am using Access vba. A text file is copied from the server to a network
drive.
What I am trying to do is copy this file form one folder to another.
Except when the file is copied to the destination, I also want to
include a date stamp in the file name.
Following is what I am using and it is not working. Any help would be
appreciated.
Public Function CopyKill()
Dim OldName, NewName
OldName = ("Z:\MED_SERVICE\Block Hours\Downloads\To
Download\hours.txt"):
NewName = ("Z:\MED_SERVICE\Block
Hours\Downloads\Old downloads\hours.txt") _
& Date()
Name OldName As NewName
End Function
drive.
What I am trying to do is copy this file form one folder to another.
Except when the file is copied to the destination, I also want to
include a date stamp in the file name.
Following is what I am using and it is not working. Any help would be
appreciated.
Public Function CopyKill()
Dim OldName, NewName
OldName = ("Z:\MED_SERVICE\Block Hours\Downloads\To
Download\hours.txt"):
NewName = ("Z:\MED_SERVICE\Block
Hours\Downloads\Old downloads\hours.txt") _
& Date()
Name OldName As NewName
End Function