Access Tables

Tables store data, so they're essential building blocks of any database

Each table contains rows called records and columns called fields

Each row contains a record which is a single entry in a table and each record is composed of several descriptive fields.

[top]

The images below depict two different ways to view table components

design view

table design view

datasheet view

table datasheet view

Each column contains a field (aka field name; column heading) which is a column label describing the type of information in the column. A field is a single kind of fact that may apply to each person, event, or other record.

a screenshot of the Access tables dialog box showing the field name

[top]

Creating Tables

When creating databases, sketch out the different tables you will need and the data contained in the tables before you begin

create a table table created

[top]

Entering, or importing, data, by using existing data

You can import data from an Excel workbook (for example) by using the External Data tool which allows you to find the needed file type.

get external data

This will start the import wizard that permits you to select the worksheets and the columns that you want to import.

external data wizard

The import wizard is very sensitive and often will not import data directly into an existing table because there may be an unseen formatting difference between the data in Excel and how it appears in Access

You will need to set up your Excel table header rows to match your Access table fields

[top]

table fields

Table Fields

Once you have created a new table, view the new table in design view

  1. if an existing field name isn't descriptive enough, you can rename the field
  2. a field's data type limits and describes the kind of information you can enter in a field, such as Number or Currency
  3. you use a unique identifier, called a primary key, for each record in your table
  4. field properties are a set of characteristics that provide additional control over the data.

[top]

Field data types

data type reference

AutoNumber:

Automatically increments; used for primary key (unique identifier)

auto number reference

Number:

Numbers are integers that are negative or positive (not numbers that do not have numeric values like SSANs or PIDs)


number data type reference

Text:

Used for words or non-value numbers; default setting; 255 characters max

Currency:

Dollar or other currency amounts, with choice of decimal places

Date/Time:

Dates & times

Lookup Wizard:

for Lookup tables

lookup wizard lookup wizard dialog box

[top]

Setting Primary Keys

To distinguish one record from another, tables contain a primary key field

table design view, field name

In Design View, click the "Primary Key" icon in the desired field.

[top]

Field Properties

data type help dialog box primary key input mask input mask dialog box indexed fields

You can edit in either Design View or Datasheet view, however, the only place to make permanent changes is in Design View.

[top]

Entering/Deleting/Sorting Records

[top]

Functions

[top] [task 05.1]