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

    Exclamation Microsoft access cant create this relationship and enforce referential integrity

    HI everybody,


    I am having an issue when trying to make a relation between 2 tables. Attached the access table
    I want to link table tblCustomer to tblVehicle
    The tblCustomer has 1 customer ID whereas the tblVehicle has many customer ID.
    Therefore it should be many to one
    but i get the below message
    "microsoft access cant create this relationship and enforce referential integrity"

    Can you please help me why this error message keep pop up


    Thanks
    Ludovic
    Attached Files Attached Files

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,535
    The tblCustomer has 1 customer ID whereas the tblVehicle has many customer ID.
    Therefore it should be many to one
    Perhaps it should be but as far as I can see you don't have any matching records which is why you get that message.
    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
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,469
    Does every vehicle record have a customerID in the tblCustomer table?

  4. #4
    LOUIX is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    24
    ohh man, i see, you are right, there is no matching records, that why i got this error
    Thanks very much

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

Similar Threads

  1. relationships, referential integrity, can't enforce
    By markjkubicki in forum Programming
    Replies: 6
    Last Post: 10-25-2019, 04:40 PM
  2. Enforce Referential Integrity Limit
    By Western_Neil in forum Database Design
    Replies: 8
    Last Post: 05-12-2018, 09:14 AM
  3. Unable to Enforce Referential Integrity
    By DaveT99 in forum Database Design
    Replies: 3
    Last Post: 04-17-2018, 02:34 PM
  4. Is it always bad to NOT enforce referential integrity?
    By Access_Novice in forum Database Design
    Replies: 8
    Last Post: 08-18-2014, 09:59 PM
  5. Replies: 2
    Last Post: 04-18-2013, 05:56 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