Results 1 to 8 of 8
  1. #1
    chrismalan is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    4

    Updating field goes to wrong record

    This is an old database, but a new problem. Updating a field in the form loads a new primary key to the form. That makes it appear that the update will go to the wrong record. Closing the form and opening it again makes this problem disappear for a while. The form is on a networked computer and the back end is on a SBS2003 on the same local network.

    Any idea what is going on? To me the answer is just one thing; Microsoft.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you saying just editing one field on your form forces your form to change records?

  3. #3
    chrismalan is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    4
    Quote Originally Posted by RuralGuy View Post
    Are you saying just editing one field on your form forces your form to change records?
    Yes, that's exactly it. Any idea why this happens?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is this with *any* control on your form? Do you have any AfterUpdate event code running? How about a Timer Event somewhere?

  5. #5
    chrismalan is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    4
    Quote Originally Posted by RuralGuy View Post
    Is this with *any* control on your form? Do you have any AfterUpdate event code running? How about a Timer Event somewhere?
    It's with any field. And there are no after update events running. The closing of the form and things working again afterwards makes me think the problem is with memory. Not amount, as the one machine has 4GB, but something gets corrupted somewhere and the reference to this corrupted value is deleted when the form is closed.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    At this point I would *import* everything into a new, fresh db and see if the problem follows: http://www.btabdevelopment.com/ts/impnew

  7. #7
    chrismalan is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    4
    Quote Originally Posted by RuralGuy View Post
    At this point I would *import* everything into a new, fresh db and see if the problem follows: http://www.btabdevelopment.com/ts/impnew
    Thanks. I compacted and repaired the back-end and unset the auto-correct option on it. So far so good. If it does it again I'll do the import thing. Thanks again. That was quick.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The import only takes a minute or so but if you are satisfied then go ahead and use the Thread Tools and mark this thread as Solved.

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

Similar Threads

  1. SQL not updating record
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 01-27-2011, 10:42 AM
  2. Record Selection, email and then table updating
    By ballj_35 in forum Programming
    Replies: 4
    Last Post: 10-05-2010, 01:41 PM
  3. updating a record
    By markjkubicki in forum Programming
    Replies: 18
    Last Post: 09-19-2010, 08:20 AM
  4. Updating another record table with command button
    By erlan501 in forum Programming
    Replies: 5
    Last Post: 04-26-2010, 09:03 AM
  5. Updating a field
    By JohnBoy in forum Programming
    Replies: 24
    Last Post: 04-18-2010, 08:43 AM

Tags for this Thread

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