Results 1 to 4 of 4
  1. #1
    ResearchRN is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    St. Louis, Mo.
    Posts
    21

    Embedded Form Suddenly Stopped Working

    I have a neurosurgery database that has a main form containing demographic data with a surgery data subform embedded into to it. The two forms are linked by the patient ID number. The form has worked fine for years. Suddenly, the subform no longer picks up the patient ID number from the main form. I haven't changed anything. I'm getting this error message:
    3101 Microsoft Office Access database engine cannot find a record in the tblDemographics with key matching field(s) "IdNum"
    So far I have:
    • run the compact and repair database thing.
    • checked the table relationships and even redid them several times.
    • cut the subform out and re-embedded it being careful to make sure they were linked by the ID number.
    • opened a backup copy of the database, checked to make sure the form was working properly. Then blew away all the tables in the backup copy and imported all the tables from the current copy. As soon as I did that, the form stopped working again.
    • Tried creating a new main form and embedded the existing surgery data form into it. Same problem.
    • Tried creating a new main form and a new embedded surgery data form. Same problem.
    • checked all the VBA I can find in both forms. Nothing seems amiss.


    So can anyone tell me why this is happening and how to fix it?

    Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    Seems something, I guess a record, is corrupted beyond recovery. I hope you still have the backup copy. Start with that (save an unchanged copy) and try entering new records. You might have to re-enter everything from that point forward.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,740
    In addition to June7's comment -- I also hope you have a backup. Sure sounds like corruption.

    You may try starting a new empty database, then copy each object from the existing database to the new.
    Good luck

  4. #4
    ResearchRN is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Location
    St. Louis, Mo.
    Posts
    21
    Thanks to you both for your replies. Doesn't sound like good news. I was needing to update the database anyway so maybe now is a good time.

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

Similar Threads

  1. Command Buttons Stopped Working on Form
    By genest11 in forum Reports
    Replies: 12
    Last Post: 02-06-2013, 06:59 AM
  2. Form stopped working in new year?
    By daniejm in forum Forms
    Replies: 14
    Last Post: 01-04-2013, 01:41 PM
  3. acViewPreview command suddenly not working
    By kelann in forum Reports
    Replies: 2
    Last Post: 10-16-2012, 07:38 AM
  4. Replies: 5
    Last Post: 06-13-2012, 05:08 AM
  5. Access has stopped working
    By mrkaye in forum Access
    Replies: 0
    Last Post: 05-22-2012, 04:09 PM

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