Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 47
  1. #16
    GGroman is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2010
    Posts
    1

    Field Size Limits

    I was also receiving this error message, with the following criteria confirmed: 1) add'l spaces in front of column headers/names were removed; 2) columns were all formatted to text; 3) file was in .txt format, or in .csv format (tried both).

    The culprit was 1 field (column) contained 1,676 characters. I changed the column size to 250 or fewer (fixed position import) and it worked. Hope this helps.


    Quote Originally Posted by sarahji View Post
    Hey all,

    I'm getting the same error when importing a spreadsheet from Excel into Access 2007. I tried changing all the fields to text and making sure there are no spaces in the field names/ column headers. No luck!



    Any suggestions?

    Gracias!

  2. #17
    accessnewbie is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    20

    A second solution?

    ~ Sorry, didn't see that changing the data type had already been attempted! ~

    Hello! First off...love this forum!!! It has saved me many times!!

    I just ran into this error. I only have 1 column in my Excel spreadsheet. The header (cell A1) is "ID". Then there is a list of 37 9-digit numbers. I have a form that I input the file name in a text box and then click a button to import the file. Here's that code:

    strHoldPath = InputBox("Where is your Excel spreadsheet saved?", "Import Excel Spreadsheet", "default\path\goes\here")

    strFileName = strHoldPath & "\" & nameoffile & ".xls"

    DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "ImportTable", strFileName, True

    I received the "...search key..." error. I didn't have any spaces anywhere in the file. I changed the data type of this column to Text and was then able to import it successfully. Go figure!!

    Thanks!
    mw

  3. #18
    heyuser is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    1

    Thumbs up Thanks everyone!

    I just want to say thanks for this informative thread! Only one space before a field heading was causing all the grief. Thanks to all of you, I didn't waste days on this problem - only an hour or so.

  4. #19
    jsantora is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Oct 2010
    Posts
    3

    check the spacing again

    results of an experiment:
    First, I did a successful import from Excel to a new table in Access. Then I made one small change to the excel file and tried the import again.

    It failed with the strange "the search key was not found in any record" error message.

    All I did was add a space to the left of one of the column headers - changing "System" to " System". Depending on the font and size and upper/lower case of some of the first letters of your column headers, it might be really hard to see the space on the left.

    hope this helps someone.
    john

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for the tip John.

  6. #21
    AvrohomE is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2011
    Posts
    1

    What worked for me

    I had the same obscure error. In my case the problem was that I had coded a 300 character column as text. Once I changed it to memo, the import worked. It seems that a variety of errors generate the same meaningless message 'the search key was not found in any record'.

  7. #22
    rjrcooper is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2011
    Posts
    1
    Hi all!

    I just joined the forum cos Google returned this post as one of the top results for the error I was getting but now it's fixed.

    I was trying to import a text file into Access and was getting the "the search key was not found in any record" message when I clicked "Finish" at the end of the wizard.

    I imported the file into Excel and tried to import that but got the same message. I then went and did some analysis on the Excel file. Probalby not that relevant to the final solution but here are the details:
    - There are 5 columns of data
    - There are 73,099 rows
    - There is no field/cell that is greater than 250 characters in length
    - I am importing all columns into "Text" columns in Access
    - The excel spreadsheet has a header row but no title has a space character at the beginning (the same message appeared even when removing the header row and accepting the default Access column names)
    - It didn't matter whether I let Access create the PK or I ask it for no PK, the same message appeared.

    How did I fix it? Quit Access and re-start! Import worked like a charm.

    I had been importing large txt files all day so it must have got its knickers in a twist and just needed a break.

    Hope this helps someone else out there....

    Cheers!

  8. #23
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for sharing!

  9. #24
    sepple is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    1

    Database Size!!

    I was not able to import a text file because I was getting the search key error.

    I just found out that the database cannot be larger than 2 GB. I was trying to import the data into a file that was already 1.99GB!

    I created a new database and the file imported with no problems! Hope this helps others.

  10. #25
    LeeDAtkinson is offline Novice
    Windows Vista Access 2007
    Join Date
    Feb 2011
    Posts
    1
    Thanks for sharing everyone. My problem was the overall databae size issue which then turned into "record too large" due to too many columns and 70k rows. I imported in 2 parts and it worked.
    Thanks!

  11. #26
    dford is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2011
    Posts
    1
    Same issue, tried removing spaces and converting all columns to text didn't fix it.

    Ran a =TRIM( ) function for all my headers
    Closed Excel, Closed Access,
    Reopened Access
    File imported fine.

    Hope this helps somebody.

  12. #27
    Crazy_QA is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    1

    Smile Goodness!

    Wasted more than 30 minutes on this!
    I tried everything that was in the post - changed the whole spreadsheet to text and even re-typed all the headings to make sure I didn't have any spaces - nothing worked! Finally as mick_curtis suggested above, I deleted the heading row altogether and then it worked!!! Thanks guys!!!

  13. #28
    dcbk is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    1

    Thanks for the solution

    Thanks for the solution, was driving me crazy trying to figure out what was wrong, especially since it the spreadsheet I was trying to import had been exported from the same database.

  14. #29
    mabs239 is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    3
    Had the same problem. There was one column in excel that had one space entry in header row. Renaming it solved the problem for me.

    Thanks for all the participants here.

  15. #30
    avingavin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    1

    Sorted

    Hi folks

    I found that relocating the file to a folder without putting any punctuation in the folder name ie ' " ; : sorted the import issue. I always import as text fields, tab delimited generally saves a lot of time and hassle but this error really stumped me. I had to use Access 2007 for a different import error message. Hope this helps.

Page 2 of 4 FirstFirst 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 10-16-2008, 02:39 PM
  2. if record not found through combo box
    By wasim_sono in forum Forms
    Replies: 2
    Last Post: 08-04-2008, 06:32 AM
  3. Deleting Record Contents, not complete record...
    By Charles Waters in forum Access
    Replies: 2
    Last Post: 06-24-2008, 12:00 PM
  4. Search All Field
    By robbiebrown34 in forum Access
    Replies: 0
    Last Post: 05-17-2007, 09:40 AM
  5. Search for record from a form
    By hcoakley in forum Forms
    Replies: 0
    Last Post: 11-26-2006, 11:23 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