0% found this document useful (0 votes)
62 views21 pages

Summative 2 - Laboratory

The document provides instructions for a database laboratory assignment in an IT fundamentals course. It involves: 1) Creating a blank Access database called SURNAME_Patient_Appointments 2) Exploring the Access interface 3) Designing a "Patients" table with fields like medical record number, name, phone, and birthdate 4) Entering records into the Patients table 5) Rearranging and modifying fields in the Patients table

Uploaded by

emman lalalala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views21 pages

Summative 2 - Laboratory

The document provides instructions for a database laboratory assignment in an IT fundamentals course. It involves: 1) Creating a blank Access database called SURNAME_Patient_Appointments 2) Exploring the Access interface 3) Designing a "Patients" table with fields like medical record number, name, phone, and birthdate 4) Entering records into the Patients table 5) Rearranging and modifying fields in the Patients table

Uploaded by

emman lalalala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

ITPC 121LA – Fundamentals of Database System

Name: CYS:

Date: Professor:

SUMMATIVE #2 – Laboratory

Direction. Follow the instructions below. Provide screen shots of the activities that you have
performed.

Create the Database


1. Open Microsoft Access

2. Choose Blank Desktop Database


3. Click on the yellow folder at the end of the
File Name box and browse for the desktop

4. Use the file name: SURNAME_Patient_Appointments


5. Click Create

Explore the Window


1. Close Table1 with the X under the ribbon, or by right‐clicking on the name of the table
2. Explore the Ribbon
a. Home tab – Clipboard, Sort & Filter, Spell Check, Refresh Data, Format
text

b. Create – Create a database object: Tables, Queries, Forms, Reports


c. External Data – Import and Export data
d. Database Tools – Advanced Features of Relationships and Data Analyzers
Create the Patients Table
1. Click on the Create tab and choose Table Design

2. Type the first Field Name: Pt Med Rec #


a. Data Type: Short Text, Description: Patient's Medical Record Number
3. Enter in the rest of the fields (descriptions not necessary):

4. Set the Pt Med Rec # to be the key


a. Click on the big yellow key on the toolbar

5. Save the Table as Patients


Entering Records
1. Turn to the Datasheet View

2. Enter our first Med Rec #: 123‐456


3. Press tab move to the next field
Pt Med Rec # Pt First Pt Last Pt Phone # Pt Birth Date
123‐456 3525551234 1/1/1
a. First Name: <Enter your First name here>
b. Last Name: <Enter your Last name here>
c. Phone #: 3525551234
 No dashes
d. Birth Date: <Enter your birthdate>
4. Enter our second record:

a. Pt Med Rec #: 111-777


b. First Name: Azenith
c. Last Name: Mojica
d. Phone #: 1111117777
 No dashes
e. Birth Date: 12/25/2000
5. Enter 3 more records using any random information that you want.

Exit the Database


1. Exit the database, Access will probably not ask you to save
a. But it did save the record, it does so automatically.
2. Open your database from the desktop
a. If necessary, Enable Content

3. Open the table (double‐click) from the navigation pane


Rearrange Fields
1. In Design View, move Pt Birth Date above the Pt Phone #
a. Click on the row heading, the grey box in front of the field name. Then Click/Drag
the line above the Pt Phone #

2. Switch to the Datasheet View and Save the table


a. Data saves itself, structural changes have to be saved manually

3. Enter the next record


Pt Med Rec # Pt First Pt Last Pt Birth Date Pt Phone #
789‐012 Jacob Smith 2/2/1992 3525558888
a. No hyphens in the phone number

Adding Fields
1. In Design View, create Pt Gender, Short Text field, above Pt Birth Date
a. Insert Rows from Design Tab, or from the right‐click menu

2. In Data View, enter "Male" (the whole word) for Jacob


Enter a "trouble maker" Record
1. Enter the next
record
Pt Med Rec # Pt First Pt Last Pt Gender Pt Birth Date Pt Phone #
555‐555 Jane Williams F March 3, 1983 352‐555‐5555
a. Enter Gender as just one character
b. Enter birth date as March 3, 1983; it should change to
3/3/1983 c. Type in the hyphens for the phone number

2. Go to the Design view and then return to the Data view


a. Notice Jane's record moves. This is because by default Access sorts by the primary
key field. Since Pt Med Rec # is our key, every time the data is refreshed it will sort
the data by the primary key field.
Modify Field Properties – Field Size
1. In Design View, set Field Size property of Gender at the bottom of the window to be 1
a. When you save you will get the following warning message saying data may be lost.
We want this to happen, click Yes.

b. Data is lost, our Male entries should now only read M


Modify Field Properties – Format
1. In Design View, set the Format property for Pt Birth Date to be a Medium Date
a. Notice there is no "field size" for a date field, because it doesn't matter how
many characters you type in, as long as it's a valid date.
b. Access recognizes dashes (1‐1‐2001) and slashes (1/1/2001) for date formats
Modify Field Properties – Input Mask
1. In Deign View, set an Input Mask for the Phone Number
a. Click in the Input Mash Property for Pt Phone #
b. Click the Build button (…) at the end of the line to launch the wizard
c. In the Input Mask Wizard, Phone Number is already selected. Click FINISH.
d. Save and View Results

2. Fix Jane's Phone Number by taking out the extra dashes


3. Save the table.
4. Close the table.

Save this MS Word document as:

Summative #2 – Laboratory_SURNAME

You might also like