Referential integrity in a relationship

Anonymous
2022-12-22T10:24:06.657+00:00

Hello, I have the following problem. I would like to create a 1:n relationship with referential integrity between the tables. Table "Anschrift" has "Angebotsnummer" as the primary key, table "Hauptübersicht" has the same field only not as the primary key. Unfortunately, I can't select referential integrity. In an older version it was still possible, I would be so happy if someone has an idea why that could be.

273227-screenshot-2022-12-22-112147.png

Microsoft 365 and Office Access Development
0 comments No comments
{count} votes

Accepted answer
  1. Karl Donaubauer 2,061 Reputation points MVP
    2022-12-22T13:09:06.57+00:00

    Hi,

    You have to create all relationships in the backend where the tables reside. "Relationships" between linked tables created in the frontend are just nice drawings.

    Servus
    Karl
    -------
    Access Bug Trackers
    Access News
    Access DevCon

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Karl Donaubauer 2,061 Reputation points MVP
    2022-12-22T10:54:36.863+00:00

    Hi,

    Are you trying this in the database where both tables physically reside? If a linked table is involved, RI is never selectable as RI can't be managed for other files.

    Servus
    Karl
    -------
    Access Bug Trackers
    Access News
    Access DevCon

    0 comments No comments

  2. Anonymous
    2022-12-22T11:02:11.433+00:00

    Thanks for your answer. I try it in a front end file, the tables are in the back end file. Funnily enough, there are two other tables where the relationship is there and which RI also contains. Do you think I can't create a new relationship with RI after the split?

    Servus
    Carolin

    0 comments No comments

  3. Anonymous
    2022-12-22T13:14:19.267+00:00

    Oh yes, that makes perfect sense.
    That really helped me and it works wonderfully in the back end. Thanks a lot!

    Servus
    Carolin

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.