Hello,
I want to import about 100 csv files to Access table named "NY" But I keep on getting this error when running this code. Points to the DoCmd.TransferText line when debugging. PLEASE HELP!!!!
I want to import about 100 csv files to Access table named "NY" But I keep on getting this error when running this code. Points to the DoCmd.TransferText line when debugging. PLEASE HELP!!!!
Code:
Private Sub Command0_Click()
Dim myfile
Do
myfile = Dir("c:\csv\*.csv")
DoCmd.TransferText acImportDelim, , "ny", myfile
myfile = Dir
Loop Until myfile = ""
End Sub