Solved

runtime error 3709 search key not found when I add a field to a table

Posted on 2013-06-12
4
543 Views
Last Modified: 2013-06-13
I have a database split into backend and front end.  When I add an attachment field to one of the tables in the back end I get an error in some of the front end forms.  So, to my table tblSubmission I add field SubAttachments, attachment type.  Works fine in datasheet view in the back end.  

When I close it and open the front end, open the submissions form (based on tblSubmission) and then a command button that opens another form or a report I get the runtime error.  I haven't added the new attachment field into any form or query, haven't referenced it anywhere.  If I go back into the backend and delete the new field, then back to frontend, everything works fine.
Does anyone have an idea why this would happen?
Thanks!
0
Comment
Question by:esbyrt
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
pdebaets earned 500 total points
ID: 39243718
From my notes on corruption:
---------------
"Search Key was not found in any record"

Probably there are some bad records corrupting the table. Look for "chinese" characters in text fields. You can't delete these records unless you temporarily remove the table indexes, delete the records, then replace the indexes afterwards.
----------------

You may want to make sure you have the latest service pack release for your version of Access. Also decompile: see: http://peterssoftware.com/t_fixerr.htm, item "f". Also compact and repair your database back-end regularly.
0
 

Author Comment

by:esbyrt
ID: 39245715
I have been through all the data in the back end tables and found nothing corrupted (luckily this is a new database and doesn't have many records yet).  I tested by adding a text field to the tblSubmission and then testing the front end function.  All ok.  But when I go back into the back end table and add an attachment field I get the same error.  I have compacted and repaired several times, front end and back end, no change.  I also tried the decompile / recompile thing.
If there is corruption I can't find it and it seems only the attachment type field is a problem.  Any other ideas?
0
 
LVL 12

Expert Comment

by:pdebaets
ID: 39245748
I just found this: http://www.pcreview.co.uk/forums/a2007-attachment-field-type-problem-t3595201.html

Try re-linking your table after adding the Attachment field.
0
 

Author Closing Comment

by:esbyrt
ID: 39245838
Aha!  I imported my back end tables into a new database and it works now.  So, definitely corruption somewhere.  Thanks for sending me in the right direction.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now