Defining a primary key for web apps

Every table in a relational database should have a primary key, and web apps are no exception. You’ll learn later in this book that in desktop databases, you have many options available to use for a primary key. However, in web apps, you must follow a predetermined requirement that only allows the ID AutoNumber field as the primary key. From a certain perspective, this makes defining a primary key in a web app quite simple—Access creates the primary key field, the ID field, for you automatically whenever you create a new table. You cannot delete this field from your table, but you can rename the ID field to something more to your liking, such as VendorID or InvoiceID.

If you’re an experienced Access developer, ...

Get Microsoft Access 2013 Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.