To use the RI Builder In the Database Designer, create a relationship between two tables, or double-click the relationship line to edit the relationship. In the Edit Relationship dialog box, choose the Referential Integrity button. In the Referential Integrity Builder, select the rules you want to enforce for updating, deleting, or inserting records. Choose OK, and then choose Yes to save your changes, generate RI code, and exit the builder.