Results 1 to 2 of 2
  1. #1
    scubasteveku is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    1

    You Cannot Add or Change a Record

    I am trying to input data into a database I created for work and keep getting an error message that states "You cannot add or change a record because a related record is required in table 'Resident'." I have attached a copy of the database with all personal data masked. I have looked at the relationships and cannot figure out what I am doing wrong. If someone could help, I would appreciate it. Thank you.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    You have Tasks and Residents tables linked on the autonumber primary key fields. Cannot link on two autonumber fields. This is meaningless. Each number is generated independent of the other.

    ID in Residents should link to Apartment # in Tasks.

    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention. Better would be ApartmentNum or Apartment_Num.
    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.

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

Similar Threads

  1. Change name of record in a field
    By krisN in forum Access
    Replies: 3
    Last Post: 12-23-2013, 02:16 PM
  2. Replies: 40
    Last Post: 08-20-2013, 11:38 PM
  3. Replies: 1
    Last Post: 04-12-2013, 03:15 PM
  4. Replies: 3
    Last Post: 08-21-2012, 01:10 PM
  5. on change select record?
    By hlcarlin in forum Programming
    Replies: 2
    Last Post: 07-04-2011, 09:45 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