Designing Tables and Relationships

Designing tables and relationships is crucial for a successful Access database. A well-structured design ensures that forms, queries, and reports remain accurate as your data grows, while poor design leads to duplicate data and slow queries. Start by identifying the entities your business tracks, and remember: each fact should be stored in exactly one place. Learn about primary and foreign keys, the importance of referential integrity, and how to set up relationships effectively. Avoid common pitfalls like giant tables and lookup fields to keep your database efficient and reliable. Dive deeper into these essential design principles to enhance your Access experience!

Table of Contents

Have an Access problem right now?

Short answer: Good Access design means one table per type of thing (customers, orders, products), a primary key in every table, foreign keys that point to related tables, and relationships with referential integrity turned on. Use junction tables for many-to-many links, and avoid lookup and multi-value fields in tables.

Table design is the most important decision in any Access database. Get it right, and forms, queries and reports are easy to build and stay accurate as data grows. Get it wrong, and you spend years working around duplicate data, slow queries and reports nobody trusts.

New to Access? Start with Getting Started with Microsoft Access, then come back here.

Why Table Design Matters

Poor table design is behind many of the problems we’re called in to fix:

  • The same customer typed differently in a hundred places
  • Reports with totals that don’t match
  • Queries that slow down as data grows
  • Databases that are hard to change, document or migrate

It also matters later. When a business outgrows Access and moves to SQL Server or Dataverse, a clean design moves quickly; a messy one turns the migration into a redesign. See Converting an Old Access Database to a Modern Platform.

Start With the Things You Track

Before opening Table Design, list the things (entities) your business tracks. Each one becomes a table.

A simple order-tracking database might have:

TableOne row perKey fields
tblCustomersCustomerCustomerID, CompanyName, Phone, Email
tblProductsProductProductID, ProductName, UnitPrice
tblOrdersOrderOrderID, CustomerID, OrderDate, Status
tblOrderDetailsProduct on an orderOrderDetailID, OrderID, ProductID, Quantity, Price

The rule of thumb: store each fact in exactly one place. A customer’s phone number lives only in tblCustomers. Orders point to the customer instead of copying their details. This is called normalization, and it’s what keeps data accurate.

Primary Keys and Foreign Keys

  • Primary key: a field that uniquely identifies each row. In Access, an AutoNumber ID (like CustomerID) is the simplest and most reliable choice. Avoid using names, emails or phone numbers as keys; they change.
  • Foreign key: a field in one table that holds the primary key of another. CustomerID in tblOrders is a foreign key pointing to tblCustomers. Make it a Number (Long Integer) field to match the AutoNumber it points to.

The Three Types of Relationships

TypeExampleHow to build it
One-to-manyOne customer has many ordersPut the “one” table’s primary key in the “many” table as a foreign key
Many-to-manyOrders contain many products; products appear on many ordersUse a junction table (tblOrderDetails) with a foreign key to each side
One-to-oneOne employee has one confidential HR recordShare the same primary key; use rarely, usually to separate sensitive fields

One-to-many covers most relationships. Many-to-many is where beginners struggle: you can’t link two tables directly, so the junction table sits in the middle, often holding useful details of its own, like quantity and price at the time of the order.

How to Set Up Relationships in Access

  1. Go to Database Tools > Relationships.
  2. Add your tables to the window.
  3. Drag the primary key from the “one” table (for example, CustomerID in tblCustomers) onto the matching foreign key in the “many” table (CustomerID in tblOrders).
  4. In the Edit Relationships box, check Enforce Referential Integrity. This stops anyone from creating an order for a customer who doesn’t exist, or deleting a customer who still has orders.
  5. Decide on the cascade options:
    • Cascade Update Related Fields: rarely needed when you use AutoNumber keys, since they don’t change.
    • Cascade Delete Related Records: deleting a parent deletes its children. Use with care; it’s easy to lose data by accident.
  6. Select Create, then save the layout.

The Relationships window doubles as documentation: a clear diagram makes the database far easier for the next person to understand.

Indexes: Keeping Queries Fast

An index helps Access find records quickly, like the index in a book.

  • Primary keys are indexed automatically.
  • Index the foreign keys and any fields you often search, sort or filter on, such as OrderDate or Status.
  • Don’t index everything. Each index slows saving slightly and adds file size.

To add one, open the table in Design View, select the field, and set Indexed to Yes (Duplicates OK).

Naming Conventions That Save Headaches

  • No spaces or special characters: OrderDate, not Order Date or Order#.
  • Consistent prefixes: tbl for tables, qry for queries, frm for forms, rpt for reports.
  • Same name for the same field everywhere: CustomerID in both tables, not CustID in one.
  • Avoid reserved words like Date, Name or Order as field names. They can cause errors in queries and VBA.

Clean names also make a future move to SQL Server or Dataverse much smoother.

Common Table Design Mistakes

  • One giant table. Customer, order and product details all in one row means endless duplication.
  • Repeating columns. Product1, Product2, Product3 means you need a related table instead.
  • Lookup fields in tables. Access lets you add dropdown lookups at the table level, but they hide the real stored value and cause confusion in queries. Put dropdowns on forms instead.
  • Multi-value fields. Convenient at first, but hard to query, and they don’t migrate cleanly to SQL Server. Use a junction table.
  • Storing calculated values. Store Quantity and Price; calculate the total in a query.
  • Relationships without referential integrity, which lets orphaned records creep in.
  • Using text fields for numbers or dates, which breaks sorting and math.

When to Get Help

Table design is the foundation everything else rests on. Get expert eyes on it when:

The same principles apply on modern platforms too; see Low-Code Doesn’t Mean Easy for why data modeling still matters in Power Apps.

Not sure your tables are set up right? Book a free diagnostic and we’ll review your design before it causes problems.

Frequently Asked Questions

What is a primary key in Access?

A primary key is a field that uniquely identifies each record in a table. An AutoNumber ID field is the simplest and most reliable choice in Access.

How do I create a relationship between tables in Access?

Go to Database Tools > Relationships, add your tables, drag the primary key from one table onto the matching foreign key in the other, check Enforce Referential Integrity, and select Create.

How do I set up a many-to-many relationship in Access?

Create a junction table containing a foreign key to each of the two tables, then build a one-to-many relationship from each table to the junction table.

Should I use lookup fields in Access tables?

Generally no. Lookup fields at the table level hide the stored value and complicate queries. Use a related table and put the dropdown on your form instead.


Anthony Passeri, MBA, is the founder of Access Evolved and a certified Microsoft Access Expert with 21+ years of Access and relational database experience. He helps businesses keep critical Access databases running and modernize them to Power Platform or SQL Server. More about Anthony

Talk to an Access Expert

Not sure what this means for your database? Book a free diagnostic call. No sales pitch, just a straight conversation about what makes sense for your situation.

Book a Free Diagnostic

Phone: 623-267-5720

Email: info@accessevolved.com

Access Evolved | 19580 W Indian School Rd, Ste 105 #815, Buckeye, AZ 85396

Sources

The design guidance in this article reflects standard relational database practice and Access Evolved’s own experience rather than a single outside source.

Related Reading

when a microsoft access corrupts

What Happens When Your Microsoft Access Database Corrupts — And How to Make Sure It Never Runs Your Business Again

Is your Microsoft Access database acting strange or taking longer to open? Corruption can sneak up on you, often caused by predictable issues like network drops, improper shutdowns, or too
September 30, 2026
ms access with dataverse

Can You Build Access on Dataverse?

Are you looking to modernize your Microsoft Access applications without starting from scratch? Discover how you can seamlessly connect Access to Microsoft Dataverse, transforming your data management while keeping the
April 9, 2026
Access Evolved Microsoft Access Consultant

10 Signs Your Business Is Ready for Power Apps

Is your business still relying on shared Excel files, paper forms, or email approvals? If so, it might be time to explore Power Apps! This powerful tool can transform your
June 30, 2026
Access Evolved Microsoft Access Consultant

How to Know When It’s Time to Migrate Off Microsoft Access

Is your Microsoft Access database becoming a liability? For over 30 years, Access has powered small and mid-sized businesses, but as time goes on, critical issues can arise. From reliance
April 9, 2026
Access Evolved Microsoft Access Consultant

Power Apps vs. SQL Server vs. Staying in Access

Are you wondering whether to stick with Microsoft Access, migrate to SQL Server, or embrace Power Apps? The decision hinges on your team's needs and the challenges you're facing. If
October 29, 2026
dataverse versus sharepoint lists...which one?

SharePoint Lists or Dataverse? How to Choose the Right Data Backend for Your Power Apps

Choosing the right data backend for your Power Apps can make or break your project. Should you opt for SharePoint Lists or Dataverse? If your app is simple, budget-friendly, and
July 27, 2026

Need Help With This?

Scroll to Top