Discover field otherwise fields you want to help you determine while the an important secret

Discover field otherwise fields you want to help you determine while the an important secret

To pick one industry, click on the row selector into the wanted field. To pick several fields, hold down the fresh new Ctrl key, and then click the brand new line selector for each and every occupation.

If you like the transaction of one’s sphere within the a multiple-job top the answer to change from the transaction ones industries regarding the table, click Spiders with the toolbar to exhibit the fresh new Spiders dialog field, right after which reorder the field brands on the index named PrimaryKey.

Referential stability

Referential stability try a system regarding statutes one Supply spends to help you make certain dating between facts inside the related dining tables is actually valid, and that you don’t happen to erase or changes relevant study. You might lay referential stability whenever most of the pursuing the criteria is true:

  • The matching field about primary desk is a first key otherwise features yet another directory.
  • This new relevant fields have the same research kind of. There have been two conditions. A keen AutoNumber occupation should be related to several field one has actually a beneficial FieldSize assets setting of Enough time Integer, and you will an AutoNumber profession who may have a FieldSize possessions means regarding Duplication ID can be connected with a variety career that has a FieldSize assets function of Replication ID.
  • Each other dining tables get into an equivalent Availableness databases. If your dining tables try linked tables, they must be dining tables during the Accessibility format, while need to unlock this new database in which he or she is held to put referential stability. Referential integrity can’t be enforced to have connected dining tables off databases inside the almost every other types.
  • You simply cannot enter a regard regarding the overseas secret realm of the brand new related dining table that doesn’t exists however secret of first dining table. Although not, you can go into a good Null worth from the overseas key. It specifies that facts was not related. For example, you simply can’t possess your order which is allotted to a consumer who does perhaps not exist. Yet not, you can get your order which is assigned to no-one from the entering a Null worthy of regarding CustomerID field.
  • You simply cannot erase accurate documentation out-of an initial desk if matching records are present within the an associated table. Such, you can’t erase an employee number on “Employees” table if the discover purchases assigned to the staff member throughout the “Orders” dining table.
  • You simply can’t changes a first key value regarding priple, you simply cannot change a keen employee’s ID about “Employees” table if you’ll find purchases assigned to you to staff regarding the “Orders” dining table.

Cascading position and deletes

To own dating where referential stability are enforced, you could indicate whether or not you desire Entry to immediately cascade inform otherwise cascade erase related suggestions. For many who put such alternatives, delete and update businesses who usually be prevented from the referential ethics legislation is actually enabled. When you remove details or changes top trick opinions in the a beneficial top desk, Availability helps to make the needed alter to help you associated tables to preserve referential stability.

For folks who mouse click to determine the Cascade Revision Related Industries look at container when you establish a relationship, at any time which you change the number 1 secret of a record in the main dining table, Microsoft Accessibility automatically reputation the primary the answer to new well worth in most related suggestions. Like, for folks who change a consumer’s ID on “Customers” desk, the CustomerID occupation on “Orders” dining table are instantly up-to-date for each and every one of you to owner’s requests therefore, the matchmaking isn’t broken. Access cascades condition instead of demonstrating people message.

getiton desktop

If for example the number 1 key in the key table are an AutoNumber field, choosing the Cascade Enhance Associated Industries examine box doesn’t have feeling since you don’t replace the worth inside an AutoNumber occupation.

Leave a Reply

Your email address will not be published. Required fields are marked *