0% found this document useful (0 votes)
92 views12 pages

MS Access - Exercises 2nd 2015-2016

This document provides an outline for exercises on using MS Access to work with databases. It includes 9 parts that cover topics such as creating databases, applying field properties, creating relationships between tables, different types of queries including select, aggregate, action and parameter queries, creating forms and reports, and modifying form and report designs. The exercises provide step-by-step instructions and questions for students to practice each MS Access topic.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views12 pages

MS Access - Exercises 2nd 2015-2016

This document provides an outline for exercises on using MS Access to work with databases. It includes 9 parts that cover topics such as creating databases, applying field properties, creating relationships between tables, different types of queries including select, aggregate, action and parameter queries, creating forms and reports, and modifying form and report designs. The exercises provide step-by-step instructions and questions for students to practice each MS Access topic.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

UOB

MS Access – Exercises

ITIS102
Amna Khalifa & Hajar Khalifa
2/24/2016
ITIS102

MS Access – Exercises
Part 1: Introduction to MS Access
- How to create a database
- Identify different data types
- Import records from MS Excel

Part 2: Field Properties in Access


- Apply different Field properties

Part 3: Primary Key And Relationships


- Link the database tables (create relationships)

Part 4: Select Query


- Create a simple Query to answer a simple question
- Apply different Query Criteria for Text, Number, Currency, auto number field, Date/Time fields.

Part 5: Advanced Select Queries


- Parameter queries
- Concatenation queries
- Calculation queries

Part 6: Total Query - Aggregate Function


- Sum: for summing a column of numbers.
- Average: for averaging a column of numbers.
- Count: For counting the number fields
- Min: for finding the lowest value in a field.
- Max: for finding the highest value in a field

Part 7: Action Queries


- Update queries
- Delete queries
- Make new table queries
- Append queries

Part 8: Forms
- Creating form Using form wizard and navigation form
- Modifying the Form Design

Part 9:Report
- Creating form Using report wizard
- Modifying the Form Design

Amna Khalfia & Hajar Khalifa


ITIS102

Part 1: Introduction to MS Access

Objectives
- How to create a database
- Identify different data types
- Import records from MS Excel
 Download Car Rental Database.accdb) & Car Rental Sys.xlsx) from the
following link: https://sites.google.com/site/labitis102/

 Questions:
1) Create the Customers table
2) Change the data type of all fields in
Customers table.
3) Import Clerks table from external excel sheet (Car rental sys.xlsx) and make
sure to change the data type of all fields.

Amna Khalfia & Hajar Khalifa


ITIS102

Part 2: Field Properties in Access

Objectives
- Apply different Field properties

 Questions:
1) Perform the following properties to the required table/s.
1. Ensure that the VDes field has caption “Vehicle Description”.

2. Ensure that Nationality displayed in uppercase letter.

3. Ensure that Receipt Date has long date format.

4. Ensure that Daily Rate has currency sign “BHD” with 3 decimal places.

5. Ensure that the user enters an appropriate Email format, it should contain
“@” and ends with “.com”: If it doesn’t, then a message box appears “Please
enter a valid Email Address”. e.g. [email protected]

6. Ensure that Daily Rate has default value 10.

7. Ensure that Daily Rate should be in the range of 10 and 35, otherwise,
display error message invalid Daily Rate.

8. Ensure that Vehicle NO should not accept more than 6 digits.

9. Identify a field that should have a lookup wizard vales.

Amna Khalfia & Hajar Khalifa


ITIS102

Part 3: Primary Key And Relationships

Objectives
- Link the database tables (create relationships)

 Questions:
1) Identify the appropriate primary key(s) for All tables.

2) Create appropriate relationships between the following tables:


1. Receipts and Customers tables, make sure to enforce the referential
integrity

2. Receipts and Clerks tables, make sure to enforce the referential integrity

3. Receipts and Customers tables, make sure to enforce the referential


integrity

4. Receipts and Rented Vehicle tables, make sure to enforce the referential
integrity

5. Rented Vehicle and Vehicle tables, make sure to enforce the referential
integrity

Amna Khalfia & Hajar Khalifa


ITIS102

Part 4: Select Queries

Objectives
- Create a simple Query to answer a simple question
- Apply different Query Criteria for Text, Number, Currency, auto number field, Date/Time fields.
 Questions:
1. Create a query that displays Receipt No, Receipt No, Receipt Time, Receipt
Date, Pay By , Clerk Name, Customer Name.(Save the Query as Query 4-1).

2. Create a query that displays all Vehicles information where Daily Rate price is
more than 15. The result should be sorted in ascending order of their Daily Rate
price (Save the Query as Query 4-2).

3. Create a query that displays all Vehicles information except “Ford“ (Save the Query
as Query 4-3).

4. Create a query that displays Receipt information for all rented vehicles were
hired in the 1st week of April. The result should display only Toyota and Ford
Vehicles. (Save the Query as Query 4-4).

5. Create a query that displays all Vehicles information where Daily Rate price is
within the range of 10-15. (Save the Query as Query 4-5).

Amna Khalfia & Hajar Khalifa


ITIS102

Part 5: Advanced Select Queries

Objectives
- Parameter queries
- Calculation queries
- Concatenation queries

 Questions:
1. Create Query that asks the user to enter a Hire Date in order to view all
recipes information for all vehicles that hired in this specific date. (Save the Query as
Query 5-1).

2. Create a query that calculates the Rent price for each rent transaction, Sort the
result in ascending order of the receipt NO. (Save the Query as Query 5-2).
(Rent price = No of Days * Daily Rate)
(No of Days= Return Date – Hire Date)

3. Create a Query that views the vehicles information in one field called Vehicle
info, by combining the Vehicle No, VDes and Daily Rate. (Save the Query as Query 5-3).

Hint : Vehicle info: [VDes] & ", " & "Car NO: (" & [Vehicle NO] & "), Daily Rate:" & [Daily Rate]

Amna Khalfia & Hajar Khalifa


ITIS102

Part 6: Total Query - Aggregate Function

Objectives
- Sum: for summing a column of numbers.
- Average: for averaging a column of numbers.
- Count: For counting the number fields
- Min: for finding the lowest value in a field.
- Max: for finding the highest value in a field
 Questions:
1. Create a query that calculates the total Rent price for each receipt, where
Receipt price is the sum of rent prices. (Save the Query as Query 6-1).
Hint: Use Query 5-2.

2. Create a query that calculates the average, minimum maximum No of Days of


days. (Save the Query as Query 6-2).

3. Find the number of rented vehicles for each Vehicle Model. (Save the Query as Query
6-3).

Amna Khalfia & Hajar Khalifa


ITIS102

Part 7: Action Queries

Objectives
- Update queries
- Delete queries
- Make new table queries
- Append queries
 Questions:
1. The manager decided to replace all Nissan cars by Kea, therefore you are
required to create a query that updates Nissan to Kea, and increase the Daily
Rate by 10%. (Save the Query as Query 7-1).

2. Create a query that delete all receipts records belongs to customer C1001 . (Save
the Query as Query 7-2).

3. Create query that make new table called “Japanese Cars” including all records
of “Toyota” cars Only. (Save the Query as Query 7-3).

4. Create query that will add the records of “Nissan” cars to the table “Japanese
Cars”

Amna Khalfia & Hajar Khalifa


ITIS102

Part 8: Form

Objectives
- Creating form Using form wizard
- Modifying the Form Design
 Questions:
1) Create useful Forms for the Car Rental Database:
1. Customers form

2. Clerks form

Amna Khalfia & Hajar Khalifa


ITIS102

3. Vehicles

4. Receipt form and , add the buttons (print, close, first, last , next, previous )
to the form

2) Create the navigation from below:

Amna Khalfia & Hajar Khalifa


ITIS102

Part 9: Reports

Objectives
- Creating report Using report wizard
- Modifying the report Design
 Questions:
1) Create the following report:
a. Get the required information from Query 4-4.
b. Group by Receipt No.
c. Sort Vehicle No in Descending order.
d. Use summary option, and show the Average of the Daily Rate.
e. Use Stepped Layout.
f. Save the report as Rented Vehicle Report.
g. Use the Design and Layout View to apply the following:
h. Insert Logo.
i. Insert Date & Time.
j. Format the Title.

Amna Khalfia & Hajar Khalifa

You might also like