Hi,
i want to export a table for later import, using vba.
That´s my code:
export:
filename = "C:\HVOtabelle. txt"
DoCmd.TransferT ext acExportDelim, , "tblHVOMask e1", filename
import:
filename = "C:\HVOtabelle. txt"
DoCmd.TransferT ext acImportDelim, , "tblHVOnew" , filename
so i got a new table called tblHVOnew, which should be identical with
tblHVOMaske1 (no, i don´t want to just copy the table, i need this for
further treatment)
But only the first fieldname has been imported with its right name. It
is called "Einsatznummer" . All the others are now called F1,F2,F3,...
until the fields end, but the got different names.
I also tried with
DoCmd.TransferT ext acExportDelim, , "tblHVOMask e1", filename, true
and
DoCmd.TransferT ext acImportDelim, , "tblHVOnew" , filename,true
but i get the same strange result, that access gives my imported table
wrong field names
any ideas?
regards, Oli
i want to export a table for later import, using vba.
That´s my code:
export:
filename = "C:\HVOtabelle. txt"
DoCmd.TransferT ext acExportDelim, , "tblHVOMask e1", filename
import:
filename = "C:\HVOtabelle. txt"
DoCmd.TransferT ext acImportDelim, , "tblHVOnew" , filename
so i got a new table called tblHVOnew, which should be identical with
tblHVOMaske1 (no, i don´t want to just copy the table, i need this for
further treatment)
But only the first fieldname has been imported with its right name. It
is called "Einsatznummer" . All the others are now called F1,F2,F3,...
until the fields end, but the got different names.
I also tried with
DoCmd.TransferT ext acExportDelim, , "tblHVOMask e1", filename, true
and
DoCmd.TransferT ext acImportDelim, , "tblHVOnew" , filename,true
but i get the same strange result, that access gives my imported table
wrong field names
any ideas?
regards, Oli
Comment