This is close to something we did. You will have to change directories accordingly, but it shouldn't take much to make it work.
==========
Public Sub ImportData()
On Error GoTo Err_Import
Dim strImportDir As String, strFile As String, strOldFile As String, strNewFile As String
strImportDir = "C:\Apps\Discovery\pmcp\"
Application.SetOption "Confirm Action Queries", False
strFile = Dir(strImportDir & "*.csv"
Do While strFile <> "" ' Start the loop.
strNewFile = strFile & ".DUN"
strOldFile = strFile
DoCmd.TransferText acImportFixed, "Discovery Import Specs", "tblTempDataDump", strOldFile
FileCopy strOldFile, strNewFile 'Copy file to new name
Kill strOldFile ' Delete Original txt File in "PMCP" Directory
DoEvents
strFile = Dir ' Get next entry.
Loop
Exit_Import:
On Error Resume Next
Application.SetOption "Confirm Action Queries", True
Exit Sub
Err_Import:
MsgBox Err & Err.Description, , "Error in Import"
Resume Exit_Import
End Sub
========== Jim Lunde
compugeeks@hotmail.com
We all agree that your theory is crazy, but is it crazy enough?