J
Janet Ciegler
I have a short program in VB that is supposed to read a comma-delimited
text file from disk into an empty Access table. It works fine with my
Windows XP running Access 2000. However when I put the same Access 2000
onto a Windows 98 machine, the program fails, even though I’m using the
same input file, same table definition, and same code. The vb line is:
DoCmd.TransferText acImportDelim, , "tblImportText", strPathname
and the error message is:
Field ‘F1' doesn’t exist in destination table ‘tblImportText.’
Both input file and the table have exactly six fields. Sample input table:
4217,R,0006,002,001,00
4218,R,0006,004,002,00
4219,R,0006,004,004,01
4220,R,0006,004,005,00
When I use the regular method for importing (File–>Get External
Data->Import-> text file), that same file is imported correctly, but I
want to use a program. Any idea what is ‘Field F1' and what can I do
about it? Thanks for your help!
text file from disk into an empty Access table. It works fine with my
Windows XP running Access 2000. However when I put the same Access 2000
onto a Windows 98 machine, the program fails, even though I’m using the
same input file, same table definition, and same code. The vb line is:
DoCmd.TransferText acImportDelim, , "tblImportText", strPathname
and the error message is:
Field ‘F1' doesn’t exist in destination table ‘tblImportText.’
Both input file and the table have exactly six fields. Sample input table:
4217,R,0006,002,001,00
4218,R,0006,004,002,00
4219,R,0006,004,004,01
4220,R,0006,004,005,00
When I use the regular method for importing (File–>Get External
Data->Import-> text file), that same file is imported correctly, but I
want to use a program. Any idea what is ‘Field F1' and what can I do
about it? Thanks for your help!