T
Tom
I'm trying to import a text file. Here's a sample:
"89","000000","890828","01","PER"," .00"," .00","END="
"89","000001","890828","01","PER"," .00"," .00","END="
"89","000002","890828","01","PER"," 2755.12"," 2755.12","END="
And here's my code:
'------------------------------------------------------------
' import the dadgum text file with our data
'
Set DAOrs = DAOdbs.OpenRecordset(strTblName)
DoCmd.TransferText acImportDelim, , strTblName, strPathName, 0
DAOrs.Close
Set DAOrs = Nothing
which is *supposed* to tell Access (2k) that my file has no field names. But I
keep getting this error:
Field 'F1' doesn't exist in destination table '<MyTableName>'. I get the same
msg for all my input files.
Anyone know what I'm missing? Doing? Not doing?
Thanks in advance,
Tom
"89","000000","890828","01","PER"," .00"," .00","END="
"89","000001","890828","01","PER"," .00"," .00","END="
"89","000002","890828","01","PER"," 2755.12"," 2755.12","END="
And here's my code:
'------------------------------------------------------------
' import the dadgum text file with our data
'
Set DAOrs = DAOdbs.OpenRecordset(strTblName)
DoCmd.TransferText acImportDelim, , strTblName, strPathName, 0
DAOrs.Close
Set DAOrs = Nothing
which is *supposed* to tell Access (2k) that my file has no field names. But I
keep getting this error:
Field 'F1' doesn't exist in destination table '<MyTableName>'. I get the same
msg for all my input files.
Anyone know what I'm missing? Doing? Not doing?
Thanks in advance,
Tom