Results 1 to 6 of 6
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    The Search key was not found in any record excel import

    HI

    As I have done 100s of times before I went to import an excell spreadsheet into Access 2013

    I sue the wizard and tell it the 1st raoew contains field names. No spaces in the first row. I've set all the fields to text.



    When I import I get the error:

    The Search key was not found in any record

    I've compacted and repaired the database but that has not fixed the error. Is it in the spreadsheet of in Access?

    thanks

    Ian

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    are you importing via Transferspreadsheet, or a query?
    does it create an IMPORT ERRORS table?

    setting the column to text does not guarantee the field will be text.
    I run a macro to scan the column and put a single quote in the front of every cell before import. This solves that problem.

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    I just select
    external data..... excel

    then browse to the file.

    I select import into a new table, tick the box to say the first row has the column headers,

    I let access pick the primary key.

    It's then that the error appears and nothing is imported and not error report is created.

    THanks

    Ian

  4. #4
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    just re read your text and realised I hadn't quite understood. Went back to excell added a " to the start of every record and it them imported with no errors.

    I then used search and find to remove the " in access.

    Thanks

    Ian

    Quote Originally Posted by Jen0dorf View Post
    Hi

    I just select
    external data..... excel

    then browse to the file.

    I select import into a new table, tick the box to say the first row has the column headers,

    I let access pick the primary key.

    It's then that the error appears and nothing is imported and not error report is created.

    THanks

    Ian

  5. #5
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    in case you dont have it, here's a macro to convert the column to text.
    put cursor in top row, then run:

    Code:
    Public Sub Cvt2Txt()
    While ActiveCell.Value <> ""
       If Left(ActiveCell.Value, 1) <> "'" Then ActiveCell.Value = "'" & ActiveCell.Value
       ActiveCell.Offset(1, 0).Select
    Wend
    End Sub

  6. #6
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    don't have that,

    is this for using in excel or access?

    thanks

    Ian

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

Similar Threads

  1. The search key was not found in any record
    By virtualprg in forum Import/Export Data
    Replies: 46
    Last Post: 08-26-2014, 10:51 AM
  2. Replies: 2
    Last Post: 11-12-2013, 07:06 PM
  3. Error importing Excel file re search key not found
    By pcbrush in forum Import/Export Data
    Replies: 1
    Last Post: 10-03-2013, 03:19 PM
  4. Import Excel spreadsheet Search key not found error
    By synses in forum Import/Export Data
    Replies: 1
    Last Post: 07-01-2013, 11:05 AM
  5. Import search key not found
    By patjivan in forum Import/Export Data
    Replies: 0
    Last Post: 12-13-2011, 12:52 PM

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