Results 1 to 7 of 7
  1. #1
    maxis is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2013
    Posts
    30

    Search Key Error 3709 - On 2 fields in the table - All other fields allow update!

    I have a copy of the back-end that gets a search key error 3709 on two records. In other words, I can duplicate the problem.



    The interesting part is that I can update any other field on both these records and save the record, but when I try to change two specific fields, I get a Search Key Error and have to ESC out to continue (basically UNDO the change). Both fields are text fields with lengths of 7 characters and 255 characters, and both are COMBO Boxes on the form.

    I tried to focus on the form think there was an issue in the code. I can definitely TRAP the 3709 error on the ON ERROR event on the form using "if dataerr = 3709", but then I tried something even simplier.

    I went directly to the table and to each of the records. Again I can update any other field in the record but these two specific fields. When I try to change either of them and move to another record, you get a Search Key Error 3709.

    By going to the table record directly I'm as low level as I can get. There are no validation rules on either field at the database level. If it was truly CORRUPT would it let me update any of the other fields on either of these records? One is an empid (not a primary key but is indexed with duplicates okay and not required), and one is status code (not a primary key but is indexed with duplicates okay and not required) so they're no critical fields, but something is keeping them from CHANGING.
    Just tried something else; deleted the INDEXES on both the fields. Now it works! I am completely confused now because it really wasn't a corrupt record, but the indexes are causing the problem. HELP - it's been a long day and I think I'm tired. Do I need to update the indexes somehow when the users selects a new empid or status code?

    Any hints? Have you seen this before?
    Thanks.
    Last edited by maxis; 08-21-2013 at 04:06 PM. Reason: New Information

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A Compact and Repair recreates all of the indexes in the db, if that helps.

  3. #3
    maxis is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2013
    Posts
    30
    That's why we're trying to fix it. Twice a week we get this error and do the compact and repair. Initially thought we were doing a me.refresh in the wrong place until we were able to duplicate it over and over and the records really aren't corrupted. The index is getting out of sync somehow. Trying to minimize database maintenance and down time; always these two fields. I think its the 50 character text field. Not even sure why we need it indexed.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you left the indexes for these two fields out of the system then I believe the only down side is a search on these two fields would be slower. It might be worth trying for a while to see if the users complain or even need these indexes. Just a thought. Just guessing here. I think it is great that you were able to narrow it down to just these two fields and their indexes.

  5. #5
    maxis is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2013
    Posts
    30
    I think you may be right RG. Worth a try isn't it? But in 20 years I've never fixed a problem like this (run-time) by deleting an index on a field. I keep looking for some form mechanics that isn't working or not tied together properly between the main and sub form, but can't see anything unusual. It's not even a NEW record, the fields have a default value in them to begin with, so it's just updating the fields which is pretty straight forward. It's one of those things you know you're putting on a band-aid but haven't really solved the problem. I don't normally index a 50 character text field so I'm pretty comfortable with trying a test, but it bugs me that an index would fail like this when duplicates are OKAY. There's only about 50000 rows in the table so it's not that big of table. Well, thank YOU for two quick responses. Much appreciated.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It seemed like it was worth a try and I'm not a big fan of indexing large text fields anyway. I think you have a handle on the issue at any rate. Good luck.

  7. #7
    maxis is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jul 2013
    Posts
    30
    thank you... always good to have a second set of eyes... time will tell... change went into production tonight... thanks again

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 08-09-2012, 07:04 PM
  2. Replies: 1
    Last Post: 06-15-2012, 10:47 AM
  3. 3709 Error -- HELP!!
    By EHittner in forum Access
    Replies: 3
    Last Post: 11-28-2011, 09:17 AM
  4. Auto update fields in the same table?
    By WendyCha in forum Access
    Replies: 0
    Last Post: 07-07-2011, 12:11 PM
  5. Replies: 5
    Last Post: 03-20-2010, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums