Results 1 to 4 of 4
  1. #1
    Chad Access is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2015
    Posts
    47

    Cannot Add or Change a Record Because A related record is Required


    Cannot Add or Change a Record Because A related record is Required


    Good afternoon! I am receiving this message box after a delete button is pressed on a form. The form is the parent (one in the one-many relationship). The delete is successful.

    Then the form is blank and the id says "New". Here's where it gets interesting....as soon as I close the form I get the message box "Cannot Add or Change a Record Because A related record is Required". I do not want this message box to appear. I don't understand why it thinks I am trying to first of all, add or change a record, and second...even if I was this is the parent anyways so it shouldn't be a problem.

    Help please! Thanks!

  2. #2
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    2,511
    Have you set "Enforce Referential Integrity" and "Cascade Delete Related Records" in the relationship window.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    Chad Access is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Sep 2015
    Posts
    47
    Quote Originally Posted by Bob Fitz View Post
    Have you set "Enforce Referential Integrity" and "Cascade Delete Related Records" in the relationship window.

    Yes I have both of those set and I checked to be sure.

  4. #4
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    2,511
    Can you post a copy of the db to illustrate the problem that we can play with
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 6
    Last Post: 07-28-2016, 06:07 PM
  2. Replies: 15
    Last Post: 03-05-2015, 03:30 PM
  3. Replies: 1
    Last Post: 12-05-2014, 07:47 PM
  4. Replies: 40
    Last Post: 08-20-2013, 11:38 PM
  5. Related Record Required
    By ungratefulninja in forum Database Design
    Replies: 7
    Last Post: 11-02-2012, 10:21 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 - Senior Forums