Results 1 to 2 of 2
  1. #1
    samos1023 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    18

    access requires a value in a field but i have required set to no???

    i have a table(tblInventory). It has a field in it called RoomID. This field has a relationship with the ID field of the tblRoom table. In the tblInventory I have set the required setting to no. When I try to enter a new record if i leave the field blank, i get this notice



    "You can not add or change a record because a related record is required in the table "tblRoom"

    Why am I getting this error if the required setting is set to no?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You have specified enforce referential integrity in the relationships window. Since (presumably) there is no record in tblRoom with a Null RoomID, you get the error.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 4
    Last Post: 06-02-2016, 09:58 AM
  2. Replies: 4
    Last Post: 06-29-2015, 01:56 PM
  3. Replies: 10
    Last Post: 06-18-2015, 11:52 AM
  4. Replies: 1
    Last Post: 12-07-2012, 02:14 AM
  5. Running Parameter Requires Table ID# Not Field Name
    By gabrielnerf in forum Queries
    Replies: 3
    Last Post: 02-05-2012, 12:34 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