Hi,
I've been experiencing a Run Time error of 3011 in my code. I'm trying to import a entire directory into one access table. The code I used is below:
Private Sub Command1_Click()
Dim ImportFile
ImportFile = Dir("M:\dd\dd\IVR Database\June 05\*.txt")
Do While ImportFile <> ""
DoCmd.TransferText acImportDelim, "comma", "tblJune", ImportFile
ImportFile = Dir
Loop
End Sub
Is there something that I'm missing?
Thanks for any assistance that anyone can provide.
JG
I've been experiencing a Run Time error of 3011 in my code. I'm trying to import a entire directory into one access table. The code I used is below:
Private Sub Command1_Click()
Dim ImportFile
ImportFile = Dir("M:\dd\dd\IVR Database\June 05\*.txt")
Do While ImportFile <> ""
DoCmd.TransferText acImportDelim, "comma", "tblJune", ImportFile
ImportFile = Dir
Loop
End Sub
Is there something that I'm missing?
Thanks for any assistance that anyone can provide.
JG