To move a file, you use the MoveFile method. There's a sample at
http://msdn.microsoft.com/library/en-us/script56/html/277621e8-9f65-4500-bc35-89
610894a3cf.asp
However, there's no real reason to use FSO for what you're trying to do. The
following uses strictly build-in VBA methods:
Function DeleteFiles()
Dim strFile As String
Dim strFolder As String
Dim strTargetFolder As String
strFolder = [Forms]![Protobase Upload]![Pathtxt]
If Right(strFolder, 1) <> "\" Then
strFolder = strFolder & "\"
End If
strTargetFolder = "C:\My Data\Imported Files\"
strFile = Dir(strFolder & "*.*")
Do While Len(strFile) > 0
Name strFolder & strFile As strTargetFolder & strFile
strFile = Dir()
Loop
End Function
If strFolder and strTargetFolder aren't on the same drive, you can't use the
Name statement. In that case, you'll have to use FileCopy, and then delete
the file:
FileCopy strFolder & strFile, strTargetFolder & strFile
Kill strFolder & strFile

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
>I need some assistance
> I have this database that has to import 35 files everyday. NOw for
[quoted text clipped - 22 lines]
>
> End Function