access advanced courses - referential integrity
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » access advanced courses - Referential integrity

access advanced courses - Referential integrity

resolvedResolved · Low Priority · Version Standard

replyReply Tue 5 Jun 2007, 13:45Delegate Tim said...

Tim has attended:
Access Intermediate course
Access Advanced course

Referential integrity

Is it advisable when setting up relationships to enforce referential integrity as a default and then remove only when and if required?

For upcoming training course dates see: Pricing & availability

replyReply Fri 8 Jun 2007, 09:46Trainer Richard said...

RE: Referential integrity

Hi Tim,

Referential integrity is very powerful when used in the correct context. I would not suggest using referential integrity as a default, unless you are very clear about what you are wanting to enforce. Not all tables need or require it, so I would suggest leaving it off, until you know you need it. This should ideally be built into your database plan, so that you are aware of its requirement prior to building the database.

ie - if you know that you want to ensure that a client number exists, prior to creating an order, then enfore referential integrity.

If you are in the design phase of the database, you might find it frustrating to enable all the referential integrity, only to find that it hinders your development progress.

Regards

Richard

 

Access tip:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard