Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Result of the Mid, the Left, or the Right Function in Query Referring to Memo Column Is Incorrect


View products that this article applies to.

Symptoms

When you use the Mid, the Left, or the Right string function in a query to parse a column of data type Memo that contains a string that is longer than 256 characters, the result may be truncated.

↑ Back to the top


Resolution

Obtain the latest Microsoft Jet 4.0 service pack that contains an updated version of the Microsoft Jet 4.0 database engine.

For additional information about how to obtain the latest version of the Jet 4.0 database engine, click the following article number to view the article in the Microsoft Knowledge Base:
239114 How To: Obtain the Latest Service Pack for the Microsoft Jet 4.0 Database Engine

↑ Back to the top


Status

Microsoft has confirmed this to be a problem in Microsoft Jet version 4.0.2927.4 and earlier.

↑ Back to the top


More information

Steps to Reproduce the Behavior

  1. Create a new Access 2000 database.
  2. In the new database, create a table named Test with a single Memo field named Field1.
  3. Save the table, and then view it in Datasheet view.
  4. Enter data into the Field1 field, ensuring that in some of the records, the string is longer than 256 characters.
  5. Create a new query that is based on the table that you created in step 2, and add the Field1 field.
  6. In the first blank column after the Field1 row, type the following:
    Expr1: Mid([Field1],1,Len([Field1]))
  7. Run the query.
  8. Note that the data is truncated to the 256th character.

↑ Back to the top


Article Info
Article ID : 257414
Revision : 3
Created on : 1/1/0001
Published on : 1/1/0001
Exists online : False
Views : 290