About tables (MDB)

Microsoft Office Access 2003

A table is a collection of data about a specific topic, such as products or suppliers. Using a separate table for each topic means that you store that data only once. This results in a more efficient database and fewer data-entry errors.

ShowHow data is organized in tables

Tables organize data into columns (called fields) and rows (called records).

Records and fields in tables

For example, each field in a Products table contains the same type of information for every product, such as the product's name. Each record in that table contains all the information about one product, such as the product's name, supplier ID number, units in stock, and so on.

ShowTable Design view

In table Design view, you can create an entire table from scratch, or add, delete, or customize the fields in an existing table.

Different ways to customize a table in Design view

Callout 1 If you want to track additional data in a table, add more fields. If an existing field name isn't descriptive enough, you can rename the field.

Callout 2 Setting a field's data type defines what kind of values you can enter in a field. For example, if you want a field to store numerical values that you can use in calculations, set its data type to Number or Currency.

Callout 3 You use a unique tag, called a primary key, to identify each record in your table. A table's primary key is used to refer to related records in other tables.

Callout 4 Field properties are a set of characteristics that provide additional control over how the data in a field is stored, entered, or displayed. Which properties are available depends on a field's data type.

ShowHow to relate two tables

A common field relates two tables so that Microsoft Access can bring together the data from the two tables for viewing, editing, or printing. In one table, the field is a primary key that you set in table Design view. That same field also exists in the related table as a foreign key.

Common field that relates two tables

Callout 1 In the Suppliers table, you enter a supplier ID, company name, and so on for each supplier. SupplierID is the primary key that you set in table Design view.

Callout 2 In the Products table, you include the SupplierID field, so that when you enter a new product, you can identify its supplier by entering that supplier's unique ID number. SupplierID is the foreign key in the Products table.

ShowTable Datasheet view

In a table or query, Datasheet view provides the tools you need to work with data.

Show Using the Table Datasheet and Query Datasheet toolbars

The Table Datasheet and Query Datasheet toolbars provide many of the tools you need to find, edit, and print records.

Datasheet toolbar

Callout 1 Print or preview data.

Callout 2 Check spelling.

Callout 3 Cut, copy, or paste selected text, fields, whole records, or the entire datasheet.

Callout 4 Sort records.

Callout 5 Filter records, and find or replace values.

Callout 6 Add or delete records.

Show Working with columns, rows, and subdatasheets

You can find tools for working with columns, rows, and subdatasheets in the datasheet itself, or by right-clicking a column selector.

Tools for working with data in Datasheet view

Callout 1 Use the column selector to move, hide, or rename a column.

Callout 2 Resize columns or rows.

Callout 3 Use subdatasheets to view related data.

Callout 4 Freeze the leftmost column so that it is displayed as you scroll to the right.

Show Moving through records

You can use the navigation toolbar to move through the records in a datasheet.

Record navigation buttons

Callout 1 Go to the first record.

Callout 2 Go to the previous record.

Callout 3 Type a record number to move to.

Callout 4 Go to the next record.

Callout 5 Go to the last record.

Callout 6 Go to a blank (new) record.