Results 1 to 3 of 3
  1. #1
    LOUIX is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    24

    Lightbulb Relationship

    Hello All

    I have 2tables tblInput and tblVehicles attached
    The fieldtxtReg in the tblInput table should be linked with the txtReg in thetblVehicles table with EnforceReferential Integrity
    But I got the below error
    No Unique Index found for the referenced field of the primary table

    Would you please help me how to link it via the relationship


    Thanking you for your help
    Ludovic
    Attached Files Attached Files

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Tell readers about the proposed application in simple, plain English. What is the business and what rules apply? What do your tables represent? How are they related in simple terms?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    ID is designated as primary key in tblVehicle. This is the value that should be saved as foreign key into a number field of tblInput.

    Advise not to use exact same field name in multiple tables.
    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. one to many relationship
    By mountainclimber in forum Access
    Replies: 8
    Last Post: 08-04-2015, 10:53 AM
  2. Replies: 3
    Last Post: 03-19-2015, 05:26 PM
  3. Replies: 1
    Last Post: 12-06-2014, 12:49 PM
  4. One to one relationship
    By ManvinderKaur in forum Database Design
    Replies: 2
    Last Post: 06-28-2010, 05:37 PM
  5. one to many relationship?
    By cowboy in forum Access
    Replies: 3
    Last Post: 06-16-2010, 02:37 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