Académique Documents
Professionnel Documents
Culture Documents
Microsoft Access
BTT101 - Mr. Freedman
Table of Contents
How to save your database
3
How to create a table
3
Primary Key
How to create a form
5
How to create a query
5
there
should
image
on
be
the
blank
right
side.
Primary Key
A Primary Key is a field or a set of fields with a unique value for each record in
the table. For instance, each student in the school has their own student number.
This would be a good field to set as a primary key because each individual would
have their own number which distinguishes them from the other students.
If the field you selected has a duplicate value for any of the your fields, an
error message will appear on your screen and inform you that it cannot be a
primary key.
Steps to creating a Primary Key:
1. Open the table that you want to add a Primary
Key to. Under the File tab, select the View dropdown
menu and click Design View.
2. Under Field Name, there should be a list of all
the fields you have created. Select the field you would
like to add a primary key to by clicking it using your
mouse.
3. On the Design tab select Primary Key in the
Tools group.
4. Save your table and return to Chart View by
selecting the View drop down again and clicking
Datasheet view.
3. A Show Table box will appear and display the tables that are available
for you to use in your query. Select the table(s) you want to use and click
Add.
4. At the bottom you will see a Table list displaying the Fields. The Table
List includes:
Fields: Select the field which you want to add a specific requirement
Table: Which table the selected field and records are taken from
Sort: Enables you to sort your records by ascending or descending
to
order
- Show: Enables you to choose if field should be displayed
- Criteria: allows you to choose a specific standard the field has to
meet. For instance, numbers can be specified by using inequality signs. (>
greater than, < less than) Specific text can also be specified by simply typing
it into the criteria box. Only the records which match these criterias will
appear in the new table
5. Once youre done, click the Run button which looks like an
exclamation mark.
4. In the Available fields box, select the fields you would like to add to
the report. Do this by simply clicking on the field and when it is highlighted,
select the right arrow.
5. Once you have selected all your desired fields, click the Next button
6. Now you will be able to choose which order you would like your fields
to be organized. Click the right arrow in order to group any fields. You can
change their priority by clicking the up or down arrows.
7. Next, you can choose to organize up to 4 fields in either ascending or
descending order. Click the dropdown and select the field you want to
organize, then click the button on the right to sort in ascending or
descending order.
10
Footnote
11
12
3. At the bottom of your view, there should be two options; Add a group
and Add a sort. Add a group or a sort and select the category/categories you
want to group or sort by.