P
puter__tutor
I used the following module to import multiple ".csv" files. It works in two
separate databases. Third database, I get "run time error 3001, invalid
argument." Stepped thru and all variables are correct.
Sub IsImported()
Dim MyPath, MyFile
MyPath = "C:\Documents and Settings\Scott\My
Documents\EagleVisionSolutions\Campaigns\Reference USA\Missouri not St Louis
not Kansas City\"
MyFile = Dir(MyPath + "*.csv", vbNormal)
'MyName = MyPath + MyFile
Do While MyFile <> ""
DoCmd.TransferText acImportDelim, , "NewNotKCStl", MyFile, -1
MyFile = Dir
Loop
End Sub
separate databases. Third database, I get "run time error 3001, invalid
argument." Stepped thru and all variables are correct.
Sub IsImported()
Dim MyPath, MyFile
MyPath = "C:\Documents and Settings\Scott\My
Documents\EagleVisionSolutions\Campaigns\Reference USA\Missouri not St Louis
not Kansas City\"
MyFile = Dir(MyPath + "*.csv", vbNormal)
'MyName = MyPath + MyFile
Do While MyFile <> ""
DoCmd.TransferText acImportDelim, , "NewNotKCStl", MyFile, -1
MyFile = Dir
Loop
End Sub