Results 1 to 2 of 2
  1. #1
    Mschneider331 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2016
    Posts
    6

    Help with allowing duplicate records

    Hello,

    I have created 3 tables labeled:


    Patients
    Appointments
    Doctors.

    Once I input all the data into the fields I got to the last line I was entering in the Appointment records, and that's when it told me I could not enter the
    data "you cannot add or change a record because a related records is required in "patient"

    I have attached the file if anyone can tell me what I'm doing wrong.
    Attached Files Attached Files

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    It sounds like you created a constraint when you defined a relationship in the Relationships Window requiring a record in table Patients. Are you trying to create a new doctor that does not have any patients? Maybe you can assign a patient to the new doctor before committing the record to the table.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-08-2017, 09:04 AM
  2. SubForm not allowing new records
    By Calego in forum Forms
    Replies: 5
    Last Post: 08-15-2015, 05:35 PM
  3. Replies: 3
    Last Post: 10-22-2013, 02:51 PM
  4. Table allowing duplicate primary keys
    By Count Duckula in forum Access
    Replies: 4
    Last Post: 06-13-2013, 09:12 AM
  5. Replies: 16
    Last Post: 04-25-2013, 12:38 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