Tables

A table is a collection of data about a specific topic, such as students or contacts. Using a separate table for each topic means that you store that data only once, which makes your database more efficient, and reduces data-entry errors.


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

 


Create a Table from scratch in Design view
  1. If you haven't already done so, switch to the Database Window You can press F11 to switch to the Database window from any other window.
  2. Double-Click on "Create table in Design view".
    (DESIGN VIEW)
  3. Define each of the fields in your table.



Primary Key



Switching Views
Datasheet View Design View

Displays the view, which allows you to enter raw data into your database table.

Displays the view, which allows you to enter fields, data-types, and descriptions into your database table.



Entering Data



Manipulating Data



Advanced Table Features w/Microsoft Access
  • Assigning a field a specific set of characters
    • Example) Making a Social Security Number only allows 9 characters.
      1. Switch to Design View
      2. Select the field you want to alter
      3. At the bottom select the General Tab

        Field Properties
      4. Select Field Size
      5. Enter the number of characters you want this field to have
  • Formatting a field to look a specific way (HINT: You do not need to assign a field a specific set of characters if you do this)
    • Example) Formatting Phone Number w/ Area Code (xxx) xxx-xxxx
      1. Switch to Design View
      2. Select the field you want to format
      3. At the bottom select the General Tab
      4. Select Input Mask Box and click on the ... button at the right.
      5. Select Phone Number option
        Input Mask
      6. Click on Next
      7. Leave !(999) 000-0000 the way it is. This is a default.
      8. Click Next
      9. Select which option you want it to look like
      10. Click Next
      11. Click Finish
  • Selecting a value from a dropdown box with a set of values that you assign to it. This saves you from typing it in each time
    • Example)Choosing a city that is either Auburn, Bay City, Flint, Midland, or Saginaw
      1. Switch to Design View
      2. Select the field you want to alter (City)
      3. At the bottom select the Lookup Tab
      4. In the Display Control box, select Combo Box
      5. Under Row Source Type, select Value List
      6. Under Row Source, enter the values how you want them displayed, separated by a comma. (Auburn, Bay City, Flint, Midland, Saginaw)
        • NOTE:This will not alphabetize them for you, so you will have to do that yourself. It should look something like this:
          Value List
      7. Select in the datasheet view and you should see the change when you go to the city field.
        Output