ACC2: Import Errors Table Lists Incorrect Row Numbers

ID: Q148466


The information in this article applies to:


SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you import a spreadsheet that causes a "key violation" error, the resulting Import Errors table lists row numbers one greater than the actual spreadsheet row. For example, if row 2 from the spreadsheet file causes a key violation, then it is listed in the Import Errors table as row 3 (not row 2).


RESOLUTION

You can manually subtract 1 from the row numbers listed for "key violation" errors in the Import Errors table.


MORE INFORMATION

Steps to Reproduce Behavior


  1. Open the sample database NWIND.MDB.


  2. Export the Shippers table to a Microsoft Excel 5.0 file called Shippers.xls.


  3. Import the Shippers.xls file and append the data to the Shippers table.


  4. Click OK when you receive the following error message:
    Import to Shippers finished - 4 records processed. 4 errors occurred. Error descriptions with associated row numbers of bad records can be found in Microsoft Access table Import Errors-<name>.


  5. Open the Import Errors table. Note that the row numbers for key violations are 1 greater than the actual spreadsheet row.



REFERENCES

For more information about the Import Errors table, search for "import errors," and then "import errors table" using the Microsoft Access Help menu.


Keywords          : kb3rdparty IsmProb 
Version           : 2.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 3, 1999