Results 1 to 4 of 4
  1. #1
    gcgoode is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    31

    Access 2007 says text file has too many rows to import

    I am trying to import a text file into excel and keep getting the message "One or more rows of data in your file contain too many characters to import. The maximum characters per row is 65000".

    These are very large files column wise, but none of the rows come anywhere close to 65,000 characters. I think what is causing this error is the null values in the text file. Microsoft has a post claiming to fix for that issue here: https://support.microsoft.com/en-us/kb/872914. The only problem is that I have many text files to import and that code ask you to specify the exact path of the specific text file you are importing and the new one to create here:
    Code:
    strOrigFile = "<Full path of your original text file>"
        strNewFile = "<Full path of the new text file>"
    .

    Doesn't seem very time efficient.
    Another way I can get around this is to import them to excel first and then to access. But, with all the large text files I need to import, this not only doubles my workload but also some of the files have too many columns to fit into a excel spreadsheet.


    Has anyone else had a similar problem? Any ideas on what I should do here?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    how many columns are you importing?

  3. #3
    gcgoode is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    31
    Well it varies but some are easily 20,000+

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Well it varies but some are easily 20,000+
    You have text files with 20,000+ columns???

    An Access table has a limit of 255 fields. Don't see how you can import a text file that has 20,000+ columns (fields).

    What does you table structure in Access look like?
    Can the text file data be broken up into multiple tables? (ie normalized?)

    You may be forced to use VBA to open the text file and process the data.

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

Similar Threads

  1. Import Text file to access database
    By anishkgt in forum Programming
    Replies: 4
    Last Post: 10-29-2014, 09:33 AM
  2. Replies: 7
    Last Post: 11-30-2013, 08:45 PM
  3. Access 2007 import fix width ANSI text file
    By jsama in forum Import/Export Data
    Replies: 0
    Last Post: 03-05-2013, 09:07 PM
  4. Replies: 5
    Last Post: 12-01-2011, 05:38 PM
  5. import excel file to access 2003 yes, access 2007 no
    By stapik in forum Import/Export Data
    Replies: 9
    Last Post: 07-27-2011, 07:09 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