Friday, December 4, 2026

How Do You Force a One-to-One Table Relationship in Microsoft Access? Video Quiz X4.1

Ready for a quick Microsoft Access table relationship quiz? These five questions cover some very practical design decisions: storing image paths, separating optional customer data, normalizing family relationships, assigning employees to different roles, and making sure a relationship is truly one-to-one instead of quietly turning into one-to-many.

Give yourself a few seconds to answer each question before reading the answer. If you get all five, congratulations: your tables are probably less likely to fill up with duplicate drones and mystery foreign keys.

Question 1: You want to show customer photos on forms, but keep the image files outside the Access database. What should the customer-related table normally store?

A. The image pasted into an OLE Object field
B. A separate AutoNumber for each photo
C. A Short Text field containing the image file path
D. The picture's pixels in a Long Text field

Answer: C. A Short Text field containing the image file path.

Store the location of the image, not the image itself. The actual JPG, PNG, or other image file can remain in a shared folder or another appropriate location, while Access stores a path such as C:\CustomerPhotos\Customer123.jpg. This keeps the database from getting bloated with embedded image files and makes replacing a photo much easier.

Question 2: Why might optional demographic or sensitive customer information be placed in a separate extended table instead of adding every field to CustomerT?

A. It allows CustomerT to hold common data while only some customers need an extended record
B. It makes every customer automatically have two CustomerID values
C. It eliminates the need for relationships between tables
D. It converts optional information into calculated fields

Answer: A. It allows CustomerT to hold common data while only some customers need an extended record.

Your main customer table should contain the information you need for most or all customers: name, address, phone number, email, and so on. Optional information, private details, or data used only in special situations can go in CustomerExtendedT. That way, you do not end up with a CustomerT full of fields that are blank for 90 percent of your records. Nobody enjoys scrolling past 47 empty columns just to find the phone number.

Question 3: A family member can be a spouse, child, parent, aunt, or another relationship. What is the best normalized design for tracking that relationship type?

A. Create Wife, Husband, Son, and Daughter fields in FamilyMemberT
B. Store every relationship type in one Long Text field in CustomerT
C. Make a separate table for each kind of relative
D. Store RelativeTypeID in FamilyMemberT and use a related RelativeTypeT lookup table

Answer: D. Store RelativeTypeID in FamilyMemberT and use a related RelativeTypeT lookup table.

This is a classic lookup-table situation. RelativeTypeT holds one controlled list of relationship names, such as Spouse, Child, Parent, Aunt, or Grandparent. FamilyMemberT stores the matching RelativeTypeID. You get consistent spelling, easy maintenance, and the ability to add a new relationship type without redesigning your table every time someone mentions a second cousin twice removed.

Question 4: Each customer can have one employee assigned as a sales representative and a different employee assigned as a service technician. Both roles come from EmployeeT. Which design is most appropriate?

A. Put SalesRepName and ServiceTechName directly in CustomerT
B. Use SalesRepID and ServiceTechID as separate foreign key fields linked to EmployeeT
C. Create a second copy of EmployeeT for service technicians
D. Store both employee IDs together in one Short Text field

Answer: B. Use SalesRepID and ServiceTechID as separate foreign key fields linked to EmployeeT.

Both assignments point to the same employee roster, but they represent different roles. CustomerT can have a SalesRepID field and a ServiceTechID field, with each one related to EmployeeT.EmployeeID. On a form, combo boxes can display employee names while storing the underlying employee IDs. Do not store names directly if you can avoid it, because employees change names, leave the company, and occasionally get promoted from sales rep to service tech without asking your database's permission.

Question 5: CustomerT is related to CustomerExtendedT by CustomerID. What must be true on the CustomerExtendedT side before Access will recognize the relationship as one-to-one instead of one-to-many?

A. CustomerExtendedT.CustomerID must be an AutoNumber field
B. Cascade Delete Related Records must be selected
C. CustomerExtendedT.CustomerID must allow no duplicate values
D. Both tables must use the same field name for every field

Answer: C. CustomerExtendedT.CustomerID must allow no duplicate values.

This is the key point: Access determines whether the relationship is one-to-one or one-to-many based on the indexes of the joined fields. CustomerT.CustomerID is normally the primary key, so it is unique already. For CustomerExtendedT.CustomerID to permit only one extended record per customer, it must also be unique. You can accomplish that by making it the primary key in CustomerExtendedT or by setting its Indexed property to Yes (No Duplicates).

Simply naming both fields CustomerID is not enough. Turning on cascade delete is not enough either. The uniqueness rule is what prevents Access from saving a second extended profile for the same customer. Without that rule, your supposedly one-to-one relationship is actually one-to-many wearing a fake mustache.

If you missed any of these, watch the embedded quiz video and then take another pass at your table designs. These concepts are also covered in Microsoft Access Expert Level 4, Lesson 1, where we get into extended information tables and the relationship rules that keep your data properly linked.

Live long and prosper,
RR

No comments:

Post a Comment