Return
to IFS 105 Notes!
Access
Project 3
Maintaining a Database
Using the Design and Update
Features of Access
Maintaining
a Database
Restructure
Database
- Add
additional fields
- Change
characteristics of fields
- adding secondary
indexes
Maintaining
Records
Adding,
Deleting, and Changing
records (mass updates or deletions)
General
Terms
- Searching
- looking for records satisfying some criteria (use Find
Button (binoculars))
- Update Query
- easy way to update contents of new field in table (Update
Query button on toolbar)
- easier then typing
all entries
- less mistakes
Filtering Records
- Note - To have only the record or records
that satisfy the criterion display, use a filter.
- filter by selection -
simplest type of filter (single criterion)
- to use, give Access an example of the
data you want by selecting the data within the table and
then clicking the Filter By Selection button on the Datasheet
View toolbar
- Remove Filter button
- on Datasheet View toolbar used to display all records
again
- Filter by Form -
filter records based on values in more than one field
- after setting the field values click the Apply
Filter button
Creating Validation
Rules
- Validation Rules
- rules that data entered by user must follow (specify legal
values)
- Validation text -
message displayed if user violates
validation rule
- Required Field -
field in which user must enter
data
- Range of Values -
entry between limits
- Default Value -
entry for field before user begins
Creating a
Lookup Field
- Lookup field
- allows user to select from a list of
values
- used to assist the user in the data-entry
process
- to change a field to a lookup field
that selects from a list of values, use the Lookup Wizard data type.
- prevents the user from typing in the wrong code
for a field like dept. number
Referential
Integrity
- Foreign key
- is a field in one table whose
values are required to match primary key
of another table
- Referential
Integrity - property that value
in foreign key
must match that of another tables
primary key (use Relationships
button in Access)
- One-to-many
relationship - one record
in 1st table is related to many
records in 2nd table
Creating
and Using Indexes
- Index key
- field used to index records
- Primary index -
most important ordering field (Access automatically
creates using primary key)
- Secondary index -
order records on additional fields (Single-field,
Multiple-field)
Advantages :
- Retrieve records quicker
- List records in different
order
Create
an Index if one or more of the following conditions
are present.
- The field is the primary
key of the table
- (Access will create
this index automatically)
- The field is the foreign
key in a relationship you have created
- (Access will create
this index automatically when you specify the relationship)
- You frequently need
your data sorted on the field
- You frequently need
to locate a record based on a value
in this field
Backup and Recovery
- Recovery - returning a database to a
correct state
In the
Lab 2
(HOMEWORK #9)
End
Maintaining a Database
Using the Design and Update Features of Access
Computer
Assignment 9
Return
to IFS 105 Notes!