Results 1 to 2 of 2
  1. #1
    N7925Y is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    32

    Import Error Driver 1

    Trying to import a large excel file into access. Each time I try, it causes an "Unexpected Error from External Database drive 1". I've even tried linking the table and it still causes the error. The total size of the file is 192,257KB. It has 925,000 rows and 35 rows of data. Any ideas?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    SOMETIMES, its caused because Excel is confused on the datatype of the column.
    Before I import, I had to run a macro on my XL file to remove this confusion by turning the entire column as text. (single quote at front of text)
    This is for fields that have both strings and numbers.
    It then imported perfectly.

    Code:
      'put cursor in column to convert, then run this macro
    Sub Cvt2Txt()
    Dim iOff As Long
    iOff = acivecell.Column - 1
    While ActiveCell.Offset(0, -iOff).Value <> ""     'as long as the 1st col has data,...
       If Left(ActiveCell.Value, 1) <> "'" Then ActiveCell.Value = "'" & ActiveCell.Value
       ActiveCell.Offset(1, 0).Select   'next row
    Wend
    End Sub

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Unexpected error from external database driver (1)
    By Icon in forum Import/Export Data
    Replies: 3
    Last Post: 05-15-2015, 12:40 PM
  2. Path to ODBC Driver
    By cbouley in forum Access
    Replies: 3
    Last Post: 04-23-2013, 10:00 AM
  3. Replies: 1
    Last Post: 01-29-2013, 10:24 AM
  4. Oracle ODBC 11g Driver
    By GregZip in forum Access
    Replies: 6
    Last Post: 03-21-2012, 03:49 PM
  5. Qucik question about the ODBC driver
    By baseborn in forum Access
    Replies: 1
    Last Post: 12-14-2010, 06:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums