A
Alan
I have a so far been able to copy one file at a time with
this code below but I need to be able to copy and move a
range of files the files that the user would type in the
form the names would be like pt071603, pt071503, pt071403.
(no file extensions) The number of files could be as many
as 16 files that would needed to be copy and moved.
I am not sure how to include a parameter to this code or
if it can be done can anyone help me please.
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
Dim Text_FileName As String
FileCopy "C:\1\" & Me.Text_FileName, "C:\1old\" &
Me.Text_FileName
Kill "C:\1\" & Me.Text_FileName
MsgBox ("Complete")
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub
this code below but I need to be able to copy and move a
range of files the files that the user would type in the
form the names would be like pt071603, pt071503, pt071403.
(no file extensions) The number of files could be as many
as 16 files that would needed to be copy and moved.
I am not sure how to include a parameter to this code or
if it can be done can anyone help me please.
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
Dim Text_FileName As String
FileCopy "C:\1\" & Me.Text_FileName, "C:\1old\" &
Me.Text_FileName
Kill "C:\1\" & Me.Text_FileName
MsgBox ("Complete")
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub