Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Access
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
About tables (MDB)
 

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 (field data type: A characteristic of a field that determines what kind of data it can store. For example, a field whose data type is Text can store data consisting of either text or number characters, but a Number field can store only numerical data.) 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 (primary key: One or more fields (columns) whose values uniquely identify each record in a table. A primary key cannot allow Null values and must always have a unique index. A primary key is used to relate a table to foreign keys in other tables.), 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 (primary key: One or more fields (columns) whose values uniquely identify each record in a table. A primary key cannot allow Null values and must always have a unique index. A primary key is used to relate a table to foreign keys in other tables.) that you set in table Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.). That same field also exists in the related table as a foreign key (foreign key: One or more table fields (columns) that refer to the primary key field or fields in another table. A foreign key indicates how the tables are related.).

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 (Datasheet view: A window that displays data from a table, form, query, view, or stored procedure in a row-and-column format. In Datasheet view, you can edit fields, add and delete data, and search for data.) 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 (toolbar: A bar with buttons and options that you use to carry out commands. To display a toolbar, click Customize on the Tools menu, and then click the Toolbars tab.) 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 (subdatasheet: A datasheet that is nested within another datasheet and that contains data related or joined to the first datasheet.) in the datasheet itself, or by right-clicking a column selector (column selector: The horizontal bar at the top of a column. You can click a column selector to select an entire column in the query design grid or the filter design grid.).

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.

advertisement