Results 1 to 3 of 3
  1. #1
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2003
    Join Date
    Jun 2016
    Posts
    243

    Required property for a foreign key


    Hi,
    Foreign keys in table design view should be Indexed: (duplicates OK).
    My question is: Should they be "Required" ===> required property set to "Yes"?

    Khalil

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    IMHO the answer is yes, so that data integrity is maintained.
    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
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Should they be "Required" ===> required property set to "Yes"?
    if you have made the relationship 'maintain referential integrity' then required is academic, you won't be able to add a recorded without populating it. If you are not maintaining referential integrity, there will be a reason for that and usually it is because you want to be able to add a record without specifying a parent - so setting required=yes will force you to put a value in that is a) other than null and b) does not relate to an existing or potential future parent (such as a 0 or negative value)

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

Similar Threads

  1. Add New Record With Same Foreign Key
    By Homegrownandy in forum Forms
    Replies: 5
    Last Post: 07-21-2015, 06:33 AM
  2. Replies: 10
    Last Post: 05-08-2012, 09:17 AM
  3. Replies: 2
    Last Post: 04-19-2012, 11:29 AM
  4. No sure how to use foreign key in the design
    By RickyLing in forum Database Design
    Replies: 0
    Last Post: 07-25-2011, 03:04 PM
  5. Getting a foreign key set
    By bkelly in forum Access
    Replies: 5
    Last Post: 08-18-2009, 09:22 PM

Tags for this Thread

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