Results 1 to 5 of 5
  1. #1
    MatthewR is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    118

    Deleting Record on Form Does Not Work


    Hi, all. So, I have a form with a record for each client. And when I use the record selector to delete a client, the client's record initially disappears just as I would expect. But, when I close the form and reopen it, the client's record is back. So, it was not deleted after all.

    I suspect it has something to do with the fact that the form's record source includes the parent table tblClientInfo, as well as a related child table, tblNext.

    But I still don't know how to fix the problem. I want to make it so that deleting the record actually deletes the client, and cascade deletes data in all child tables.

    I've attached the db. The form in question automatically opens at startup. Please let me know how to fix. Thank you!!

    Dom's Database Revision.zip

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I suspect it has something to do with the fact that the form's record source includes the parent table tblClientInfo, as well as a related child table, tblNext.
    you suspect correctly. The rule for forms where you expect to be able to edit data (including deleting) is one table one form.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What exactly are you doing to "delete" the record?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    tblNext should be in a subform, same as you did with tblActivity.
    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.

  5. #5
    MatthewR is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    118
    Good call. I made tblNext into a subform so that the main form could be based on just one table. Now, deleting records works just fine. Thank you!!

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

Similar Threads

  1. Replies: 4
    Last Post: 01-04-2016, 07:30 AM
  2. problem deleting the LAST record in a single form
    By markjkubicki in forum Forms
    Replies: 5
    Last Post: 04-22-2015, 04:42 PM
  3. Replies: 2
    Last Post: 02-23-2014, 09:48 PM
  4. Deleting The Sub-Form Record From Main Form
    By vdanelia in forum Forms
    Replies: 0
    Last Post: 11-08-2011, 04:33 PM
  5. Replies: 2
    Last Post: 11-04-2009, 09:45 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