Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    513

    referential integrity with blank records

    2 table: tbmMfr_RepAgency and tbmMfr



    tbmMfr_RepAgency includes a required field entry: RepAgency_Name

    within tbmMfr are fields: Mfr_Name (required) and Mfr_RepAgency (NOT required, *BUT*, when it does, the entry must have integrity with a record at tbmMfr_RepAgency.RepAgency_Name.


    The problem "seems" to be that the tbmMfr records with no entry in Mfr_RepAgency are blocking referential integrity

    Is there a work around?



    as always, with appreciation in advance,
    m.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,574
    Put something in the field, something that marks it as Not Assigned.
    Should be required really, else as you have found, how are you meant to have referential integrity?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    513
    makes sense; thnx

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

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2018, 10:34 PM
  2. Referential integrity
    By Lou_Reed in forum Access
    Replies: 14
    Last Post: 12-17-2015, 03:08 PM
  3. Referential Integrity
    By YunqHero in forum Forms
    Replies: 4
    Last Post: 12-17-2012, 05:05 PM
  4. Referential Integrity
    By U810190 in forum Access
    Replies: 1
    Last Post: 03-29-2010, 05:21 PM
  5. Referential Integrity
    By jbarrum in forum Access
    Replies: 5
    Last Post: 01-14-2010, 09:04 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