Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-06-12
4
Medium Priority
?
558 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 1500 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

972 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