M
Max Moor
Hi All,
I'm importing from a text file using an SQL statement:
strSQL = "Insert INTO tblImport (Name, Address) " & _
SELECT F1 As Name, F2 As Address " & _
FROM " & strFilename & "#" & strExtension & " " & _
IN '" & strFullFilename & "' 'Text;'"
where
strFullFilename = "C:\Documents And Settings\Max Moor\My Documents
\test.txt"
strFilename = "test"
strExtension = "txt"
When I execute the statement, I get an error that the path in not
valid. The path in the error message is correct, and the file really is
there. Is there a quirk with the SQL syntax that I'm missing? Any other
thoughts?
Thanks, Max
I'm importing from a text file using an SQL statement:
strSQL = "Insert INTO tblImport (Name, Address) " & _
SELECT F1 As Name, F2 As Address " & _
FROM " & strFilename & "#" & strExtension & " " & _
IN '" & strFullFilename & "' 'Text;'"
where
strFullFilename = "C:\Documents And Settings\Max Moor\My Documents
\test.txt"
strFilename = "test"
strExtension = "txt"
When I execute the statement, I get an error that the path in not
valid. The path in the error message is correct, and the file really is
there. Is there a quirk with the SQL syntax that I'm missing? Any other
thoughts?
Thanks, Max