M
Max Moor
Hi All,
I'm using the SQL statement below to import from a text file. As you
see, I'm using "F1" as the alias to identify the column in the file. This
works if I'm importing from an Excel worksheet (with no column names).
strSQL = "Insert INTO tblImport (Name, Address) " & _
SELECT F1 As Name, F2 As Address " & _
FROM " & strFilename & "#" & strExtension & " " & _
IN '" & strFullFilename & "' 'Text;'"
When I try to use this syntax to import a text file, I get an error:
"No value given for one or more required parameters." Can anyone tell me
the proper syntax to alias the columns of a text file?
Max
I'm using the SQL statement below to import from a text file. As you
see, I'm using "F1" as the alias to identify the column in the file. This
works if I'm importing from an Excel worksheet (with no column names).
strSQL = "Insert INTO tblImport (Name, Address) " & _
SELECT F1 As Name, F2 As Address " & _
FROM " & strFilename & "#" & strExtension & " " & _
IN '" & strFullFilename & "' 'Text;'"
When I try to use this syntax to import a text file, I get an error:
"No value given for one or more required parameters." Can anyone tell me
the proper syntax to alias the columns of a text file?
Max