0% found this document useful (0 votes)
308 views6 pages

Ict Lab 8

The document is a lab journal from Bahria University's Department of Computer Sciences that provides instructions on using Microsoft Access. It includes 5 tasks: 1) answering questions about databases and Access, 2) creating tables in Access, 3) creating forms, 4) creating queries, and 5) creating reports. It then provides an exercise for students to open a blank Access database called "Music Library", create and populate a table called "CDs" with fields about music albums, create a form and query to view data, and create a report to inventory the CDs sorted by genre.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
308 views6 pages

Ict Lab 8

The document is a lab journal from Bahria University's Department of Computer Sciences that provides instructions on using Microsoft Access. It includes 5 tasks: 1) answering questions about databases and Access, 2) creating tables in Access, 3) creating forms, 4) creating queries, and 5) creating reports. It then provides an exercise for students to open a blank Access database called "Music Library", create and populate a table called "CDs" with fields about music albums, create a form and query to view data, and create a report to inventory the CDs sorted by genre.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 6

Bahria University, Lahore Campus

Department of Computer Sciences


Lab Journal 08
(Fall 2019)

Course: IC&T Date:

Course Code: CSL-110 Max Marks: 30

Faculty’s Name: Miss Muzna Lab Engineer : Bilal Shahid

Name: ____________________________________ Enroll No: _______________________

Objective:
1) To become familiar with basics of MS ACCESS
2) Creating Tables, Forms, Records and Queries in MS ACCESS

Tools Required:

a) PC with Windows 7 Professional


b) MS ACCESS 2007

Attempt the following tasks.

Task 1 :
Give answers to the following.

1. What is a database?

2. What is the difference between MS ACCESS and MS EXCEL?

3. What is a query?

Introduction to Computers
Page 1
4. What is a relational database?

5. What is a “primary key” and a “foreign key”?

Task 2 : Creating Tables

1. Creating a New Database


a) New -> Blank Database -> Blank Database.
2. Adding Data to the Database
There are several ways that you can format and interact with your data in Access:
a) Tables
b) Forms
c) Reports
d) Queries
2a. Create your first table.
There are three ways to create a table:
• Use Datasheet View, i.e. enter data directly

Introduction to Computers
Page 2
• Use Design View
• Use a Table Template
2b. Create a Table in Datasheet View
a) Click Create→Table
b) Renaming Fields:
1. Place the cursor over the column heading you want to rename and double click. The
column heading will appear highlighted and the cursor will be blinking (you are now in
edit mode)
2. Type the name you want to use and then press the Enter key.
3. Repeat the first two steps for the second column, and so on.
c) Summarizing Datasheet View:

2 c. Create a Table in Design View


a) Selecting Primary Key:
i. Click the Field Selector of Supplier ID.
ii. Then click menu Edit→Primary Key or click the Primary Key button.
b) Summarizing Design View:

Introduction to Computers
Page 3
2 d. Create a Table Based on a Table Template
a) Click Create→Table Templates.
b) Select one of the available templates from the dropdown list.

Task 3 : Creating Forms

a) Click the Create tab.


b) In the Ribbon, click Form.
c) Add a new record by clicking the button in the form window.
d) A blank record should appear (If you see a Security Warning bar above the form,
click the button.)

e) When the Microsoft Office Security Options window appears, click the Enable this
content radio button and click OK.
f) In the Ribbon, click View, then Form View.
g) In “Supplier ID” add 5 and in “Company Name”, add any name.
h) In the Navigation Pane, double-click the Supplier table.

Task 4 : Creating Queries

a) Click the Create tab.


b) In the Ribbon, click Query Wizard.
c) When the New Query window appears, make sure Simple Query Wizard is selected.
Then click the button.
d) When the Simple Query Wizard opens, double-click Product Name in the Available
Fields list.

Introduction to Computers
Page 4
e) It should appear in the Selected Fields column.
f) Click the button.
g) This should add the next field to the Selected Fields list.
h) Click the button till finish.

Task 5 : Creating Reports


a) In the Ribbon, click Report Wizard.
b) When the Report Wizard window appears, click the Tables/Queries drop-down arrow.
c) When the list appears, click Table: Products.
d) Click the button to move all the fields into the Selected Fields list.
e) In the Selected Fields list box, click Supplier ID, then click the button. This field
should be removed.
f) Click the button.
g) When the next screen appears, click the button.
h) Click the first drop-down arrow, then click Product ID in the list and click Next.
i) When the next screen appears, make sure Tabular is checked in the Layout section.
j) When the next screen appears, click Equity in the list of available styles.
k) When the final screen appears, type “Products” in the box.
l) Then click the Preview the report radio button.

Exercise 1 : Using the above practiced tasks complete following exercise.

1. Open Microsoft Access.


2. Create a blank Access database in the Practice Access Files folder called Music Library.
3. Create a new table with these fields:
CD Title
Artist
Genre
Date Purchased
Number of Songs
(TIP: Do this in Design View)
4. Save the table as CDs.
5. Allow Access to create a Primary Key.
6. Rename the ID field (the Primary Key) Album ID.
7. Enter these data into the table to create the first record:
CD Title: Pearls on a String
Artist: Dusty Trails
Genre: Folk
Date purchased: 05/10/2001
Number of Songs: 14
(TIP: Do this in Datasheet View.)
Introduction to Computers
Page 5
8. Close the CDs table.
9. Create a form for inputting data into the CDs table.
10. Save it as CDs Table Data Input.
11. Use the form to enter information for four more CDs.
12. Create a query that pulls out this information:
CD Title
Genre
Number of Songs
13. Save the query as Quick CD Notes.
14. Run the query.
15. Create a report based on the CDs table.
16. Include all the fields of the CDs table in the report, and sort the records based on Genre.
(TIP: Format the report using the Flow style.)
17. Name the report CD Inventory.

Do Exercise 1 and get it checked by your instructor.

Exercise Completed Checked By:


1.

Introduction to Computers
Page 6

You might also like