Making Use of (Inconsistent/Erroneous) Import Error Tables

Dumas.DED

Registered User.
Local time
Today, 02:06
Joined
Apr 2, 2010
Messages
14
Hello all,

I am attempting to set up a saved import procedure in an Access database that will be run programmatically using docmd.RunSavedImportExport. The source document is an Excel file.

My goal is to trap any import errors caused by inconsistencies in the source data. I'd also like to provide the user with some small amount of feedback on what is causing these errors.

My initial thought was to make use of the "File_ImportErrors" table that is generated following an unsuccessful import. *Not once* has this import procedure consistently generated an error table - sometimes the table is created, sometimes it isn't.

I have tried changing the file format of the import file to comma- and tab-delimited files, respectively. Both of these formats do consistently generate an error table, however none of the error values in the table are accurate - it reports a slew of type conversion errors for fields that are completely consistent and unproblematic, whilst completely overlooking conspicuous errors from text strings in date fields.

I have tried the same import, both procedurally and manually, using all available Excel and text-delimited formats, with the same respective results.

I notice that nearly every thread on AWF pertaining to error tables discusses how to delete them, rather than make effective use of them. I suspect this is perhaps why?

Any help is greatly appreciated.
 
Rather than trying to import your Excel data directly to the final table, why not import it into a temporary table, where you can massage the data prior to moving it to the live table.

Have a look at the sample posted here for an example of what I mean.
 

Users who are viewing this thread

Back
Top Bottom