ACC95: Can't Update a Memo Field Using Visual Basic CodeLast reviewed: August 29, 1997Article ID: Q163350 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you create a form based on a table that contains a Memo field, you cannot use Visual Basic for Applications code to update text in the Memo field. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access for Windows 95" manual.
CAUSEThis behavior only occurs if you update the Memo field on the form (either manually or with code), and then you try to set the value of the Memo field in code before you save or undo the previous change. NOTE: This behavior only occurs with Memo fields.
RESOLUTIONBefore you update the Memo field in your code, use the DoMenuItem method to select or save the record as the following example demonstrates. CAUTION: Following the steps in this example will modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and perform these steps on a copy of the database.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 7.0. This problem no longer occurs in Microsoft Access 97.
MORE INFORMATION
Steps to Reproduce Problem
Keywords : kbusage PgmHowTo Version : 7.0 Platform : WINDOWS Hardware : x86 Issue type : kbbug Solution Type : kbworkaround |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |