Dim strFound As String
Dim strSearch As String
strSearch = "C:\Users\SRS\test\STest*.csv"
strFound = Dir(strSearch)
DoCmd.TransferText acImportDelim, "TableSpecs", "Current Day File", strFound, True
Beep
MsgBox "Files Imported", vbOKOnly, ""
what is wrong with this code, first time it works after that it doesnt and gives me Run time error 3011 and when Debug points towards DoCmd line.
Am trying to import a file STest12345685.csv
have saved an import Specs TableSpecs and the table name Iam trying to import is Current Day File.
Could you please help ?
Dim strSearch As String
strSearch = "C:\Users\SRS\test\STest*.csv"
strFound = Dir(strSearch)
DoCmd.TransferText acImportDelim, "TableSpecs", "Current Day File", strFound, True
Beep
MsgBox "Files Imported", vbOKOnly, ""
what is wrong with this code, first time it works after that it doesnt and gives me Run time error 3011 and when Debug points towards DoCmd line.
Am trying to import a file STest12345685.csv
have saved an import Specs TableSpecs and the table name Iam trying to import is Current Day File.
Could you please help ?