Creating a Student List Database

The Scenario: You are a elementary school teacher in your home school system and you wish to keep track of some basic student information. So let's create a database!


Start Microsoft Access

  • launch Microsoft Access
  • select Blank Access Database from the opening dialog box
  • click <OK>
  • you will now be presented with a Save Dialog Box
    • save the file as <Student List>
    • note the filename extension for Access is <.mdb>

Notice that with Access you save the file before you start working with it! This is common with most database programs.

 


The next step after starting an Access database is to define the fields to be used in your database. This is done by creating a TABLE.

Defining the Fields

  • this is the next dialog box you will see
  • with Create table in Design view selected, click on the Design button, or simply double-click on Create table in Design view 
  • this will open a Table, which for now is named simply Table1 (we will save it later), which we will use to define the fields
    • the first column, Field Name, is used to enter the names of each field
    • the second column, Data Type, is used to select the field type
    • the third column, which is optional, is used to enter descriptive information about each field

since it is reasonable to assume that every student attending a local elementary school very likely lives in the same city, and certainly in the same state, why do we need to store this information in our database?


Saving the Table, Defining the Primary Key

If you decided later that you needed a primary key, you would do the following:

You will see a key in the gray box to the left of the field row for any field that is set as a Primary Key. To remove a Primary Key, simply follow the same steps to set the key.


Entering Data in Tables

If you wanted to enter data into your database you could do so via the table we just created as follows:

However, forms are a more user-friendly way to view and enter data in a database! We will now create a form and then enter the data.


Go Back


Copyright © 2003
last updated August 12, 2003