D
DanL
I am trying to automate the import of a file that changes each day in the
number of records. Intermittently, it seems, the import function will drop a
record (the first record). Here is the command I am using:
DoCmd.TransferSpreadsheet acImport, , "ImportData", fs, True
fs is set to the path and filename of the excel file to be imported. Some
days it works fine, othrer days it drops one row. In every case, I want to
import the entire spreadsheet using the first row as the header. Before I
import, I always delete the table "ImportData" so there is no conflict with
previous imports.
Does anyone have any ideas why this is happening?
Thanks,
number of records. Intermittently, it seems, the import function will drop a
record (the first record). Here is the command I am using:
DoCmd.TransferSpreadsheet acImport, , "ImportData", fs, True
fs is set to the path and filename of the excel file to be imported. Some
days it works fine, othrer days it drops one row. In every case, I want to
import the entire spreadsheet using the first row as the header. Before I
import, I always delete the table "ImportData" so there is no conflict with
previous imports.
Does anyone have any ideas why this is happening?
Thanks,