+ Reply to Thread
Results 1 to 4 of 4

Only imports 251 characters

  1. #1
    Registered User
    Join Date
    04-17-2009
    Location
    Redditch
    MS-Off Ver
    Excel 2003
    Posts
    36

    Only imports 251 characters

    I am having serious problems with one of my spreadsheets.

    The spreadsheet (A) imports data from another spreadsheet (B) onto a new tab, it then uses the data on the tab to populate a form.

    Spreadsheet B has a cell that contains approx 1500 characters of text which should be printed on the back of the form.

    Using my PC the text is printed on the back absolutely fine no problems.

    Using someone elses PC only imports 251 characters of text from the cell in spreadsheet B.

    I dont understand how this is happening, Both PC's are using Excel 2003 sp3.

    The code that is being used is

    Please Login or Register  to view this content.
    Any Ideas?

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Only imports 251 characters

    The following link gives a decent description of what is happening:
    http://www.*****-blog.com/archives/2...ed-data-types/

    From what I am able to understand, the query tries to guess the type of data in the column. The problem you seem to be having is the the majority of cells in that column have less than 255 characters. Thereby, the query thinks the column is "Text", which has a limit of 255 characters.

    To get it to read the column as Memo, you need to have the majority of cells contain more than 255 characters. It looks like it tests anywhere between 1 and 16 rows, so a quick fix would be to insert some dummy information in the first 16 rows. But there is a possibility that your registry is set to 0, which means to test all rows.

    **** Edit***

    It may be helpful to know that if you do manage to get the column to query as a memo field, you cannot use "Count" in the query on that field.
    Last edited by Whizbang; 11-09-2009 at 11:49 AM.

  3. #3
    Registered User
    Join Date
    04-17-2009
    Location
    Redditch
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Only imports 251 characters

    How come one machine is able to import all of the data without any issues? Would there be something in the registry that tells it not to check any rows?

    i would not be able to put any dummy information into the spreadsheet.

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Only imports 251 characters

    It may be that your registry is set to 0, and the other machine is set to 16 or less. The fix may be to change the registry.

    I misread the last link I provided. I thought it was saying that 0 tests all rows, and takes the majority. I now believe I was wrong. I now believe that if set to 0, it tests all rows and defines the field type as the longest row found. Meaning that if even one of the rows has more than 255 characters, the whole column is read as memo.

    See this link for more details: http://support.microsoft.com/kb/281517

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1