Directlinq
Registered User.
- Local time
- Yesterday, 21:36
- Joined
- Sep 13, 2009
- Messages
- 67
Hi could somebody please tell me why when i use the code below it always fails to import the first record of each file.
If i import it manually it all comes across properly but using this code skips the first record of each file. When i import it manually i use the same settings as in the the specification name
Many Thanks
Code:
DoCmd.TransferText acExportDelim, "BackupFolders", "BackupFolders", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\BackupFolders.txt", False, ""
DoCmd.TransferText acExportDelim, "CompanyNames", "CompanyNames", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\CompanyNames.txt", False, ""
DoCmd.TransferText acExportDelim, "Contacts", "Contacts", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\Contacts.txt", False, ""
DoCmd.TransferText acExportDelim, "ExpensesItemstbl", "ExpensesItemstbl", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\ExpensesItemstbl.txt", False, ""
DoCmd.TransferText acExportDelim, "Endtaxyear", "Endtaxyear", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\Endtaxyear.txt", False, ""
DoCmd.TransferText acExportDelim, "ExpensesNoVATItemstbl", "ExpensesNoVATItemstbl", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\ExpensesNoVATItemstbl.txt", False, ""
DoCmd.TransferText acExportDelim, "HeadedPaper", "HeadedPaper", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\HeadedPaper.txt", False, ""
DoCmd.TransferText acExportDelim, "Invoices", "Invoices", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\Invoices.txt", False, ""
DoCmd.TransferText acExportDelim, "MonthlyExpenses", "MonthlyExpenses", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\MonthlyExpenses.txt", False, ""
DoCmd.TransferText acExportDelim, "MonthlyExpensesNoVat", "MonthlyExpensesNoVat", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\MonthlyExpensesNoVat.txt", False, ""
DoCmd.TransferText acExportDelim, "Months", "Months", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\Months.txt", False, ""
DoCmd.TransferText acExportDelim, "TaxYearTotals", "TaxYearTotals", Environ("USERPROFILE") & "\Desktop\VatBooks\DataBackup\" & TodaysDate & "\TaxYearTotals.txt", False, ""
If i import it manually it all comes across properly but using this code skips the first record of each file. When i import it manually i use the same settings as in the the specification name
Many Thanks