"Run-time error '3709'" when you enter a large amount of text in a Memo field that contains an index in Access
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file.
Symptoms
In a Microsoft Access database, when you create a Memo field that includes an index or you create a field name that includes the automatically indexed text, you cannot enter the text that includes more than approximately 3450 characters into the field. When you try to enter more text into the field or try to edit the existing data, you receive the following error message:
Run-time error '3709':
The search key not found in any record.
Resolution
If you must enter a large amount of text in the Memo field, delete the index for the Memo field. To do so follow these steps:
Open the table with the Memo field in Design view.
On the View Menu, click Indexes.
Note In Microsoft Office Access 2007, click the Design tab, and then click Indexes in the Show/Hide group.
Click the index for the Memo field, and then delete it.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
More information
This behavior does not occur in versions of Microsoft Access before Microsoft Access 2000 because Memo fields could not be indexed in Jet 3.5 and earlier.
Steps to reproduce the behavior in Access 2003
In a new database, create a new table with the following properties, and then save it as Table1:
Table: Table1 ------------------------ Field Name: Id Data Type: AutoNumber Primary Key Field Name: MyCode Data Type: Memo
Add the following record to the Table1 table:
Id MyCode ------------------------------------ 1 This is the Memo test data
Copy the following SQL statement, paste it into a new query in SQL view, and then save the query as query1:
UPDATE Table1 SET Table1.MyCode = [MyCode] & " " & [MyCode];
Create the following module, and then save it Module1:
Sub TestMemoUpdate() Dim i As Integer Docmd.setwarnings false For i = 1 To 10 Docmd.openquery "Query1" Next i Docmd.setwarnings true End Sub
Place your pointer so that it is in the procedure. Press F5 to run the code.
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για