0% found this document useful (0 votes)
17 views11 pages

QUIJOTE Practical MSAccess Screenshots

MS access lesson

Uploaded by

jeremy ian
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)
17 views11 pages

QUIJOTE Practical MSAccess Screenshots

MS access lesson

Uploaded by

jeremy ian
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/ 11

Republic of the Philippines

POLYTECHNIC UNIVERSITY OF THE PHILIPPINES


Parañaque Campus

Information Management

PRACTICAL EXERCISE
MS ACCESS

Submitted by: Quijote, Flord Jannsen


EXERCISE ONE:

1. Create a Table.
a. Create a table called Publisher.

Field Name Data Type


PubID Short Text
PubName Short Text
URL Hyperlink

Set the field PubID as the primary key.


Set the Field Size field property of the field PubID to 5.
Set the Field Size field property of the field PubName to 50.
Set the caption property of the PubID field to Publisher ID.
Set the caption property of the PubName field to Publisher’s Name.

b. Enter the following data for the Publisher table:


PubID PubName URL
MH McGraw-Hill http://www.mhhe.com
PH Prentice Hall http://www.prenhall.com
WI Wiley http://www.wiley.com
EL Elsevier http://www.elsevierdirect.com
AW Addison Wesley http://www.aw.com
MP MIT Press http://mitpress.mit.edu
CL Cengage http://cengage.com
c. Create a table called Author having the following structure:

Field Name Data Type


AuthID AutoNumber
LastName Short Text
FirstName Short Text

Set the field AuthID as the primary key.


Set the Field Size field property of the field AuthID to 5.
Set the Field Size field property of the field LastName to 50.
Set the caption property of the AuthID field to Author ID.
Set the caption property of the LastName field to Author’s Last Name.
d. Create a table called Book having the following structure:
Field Name Data Type
BookID AutoNumber
Title Short Text
Edition Short Text
PubDate Date/Time
Copyright Date/Time
Price Currency
AuthorCode Number
PubID Short Text

Set the field BookID as the primary key.


Set the Field Size field property of the field BookID to 5.
Set the Field Size field property of the field Title to 50.
Set the Field Size field property of the field Edition to 50.
Set the caption property of the BookID field to Book ID.
Set the caption property of the Title field to Book Title.
Provide data for the Book and Author tables base on the publishers given.
2. Relationships
a. Create a relationship between the AuthorID field in the Author table and
the AuthorCode field in the Book table. Put a checkmark in the box labeled
Enforce Referential Integrity.
b. Create a relationship between the PubID field in the Publisher table and
the PubID field in the Book table. Put a checkmark in the box labeled
Enforce Referential Integrity.

3. Create a Report:
Use the Report Wizard to create a report having the following requirements:
• Select the LastName field from the Author table.
• Select the Title and Price fields from the Book table.
• Select the PubName field from the Publisher table.
• View the data by Publisher.

• Add a grouping level using LastName.

• Sort the report by the Title field in ascending order.


• Choose Stepped layout and Portrait orientation.

• Type Book List as the report’s title.

Switch to Layout view and adjust each column’s width as necessary.


4. Create Queries
Query 1: List all the books that published by Prentice Hall using the LastName
field of the Author table, the Title field of the Book table, and the PubName field
of the Publisher table. Sort the query in ascending order according to the Titel
field. Save this query as Prentice Hall Books.

Query 2: List all the books where the publish date is greater than today’s date
using the LastName field of the Author table, the Title and PubDate fields of the
Book table, and the PubName field of the Publisher table. Sort the query in
descending order according to the PubDate field. Save this query as Book not
yet published.

Query 3: List all the books where the publish date is greater than today’s date
using the LastName field of the Author table, the Title and PubDate fields of the
Book table, and the PubName field of the Publisher table. Sort the query in
descending order according to the PubDate field. Save this query as Book not
yet published.
Query 4: List all the books whose title contains Excel 2007 and that are published
by Wiley using the LastName field of the Author table, the Title field of the Book
table, and the PubName field of the Publisher table. Sort the query in ascending
order according to the Title field. Save this query as Wiley Excel 2007 Books.

Query 5: List all the books whose Edition field is empty using the LastName field
of the Author table, the Title and Edition fields of the Book table, and the
PubName field of the Publisher table. Sort the query in descending order
according to the PubName field. Save this query as First Edition Books.

EXERCISE TWO

Create a database file CUSTOMER.MDB, which will require you to create one table,
one query, one form, and one report.

Create table: CUSTOMERS


Create the field names and their properties as you need them to store your specific data
for
customers. You will have at least five customers with their information included in your
customer table.

Customer ID (Primary Key: CID)


First Name (FNAME)
Last Name (LNAME)
City (CITY)
State (STATE)
Number of Purchases (PNUMBER)
Total Amount of Purchases (PTOTAL)
Date of Last of Purchase (PLAST)

Create query: NY Customers


Create a query that displays only the NY customers sorted by last name in ascending
order.
Create report: NY Customers Report
Create a report from the NY Customers query.

Create form: New Customers


Create a form for the Customers table.
Include all fields in the form.
Use the Form Wizard to create a form.
Using the New Customers form, enter two additional customers:
Marion Morrison New Paltz NY 3 $150.00 March 12, 2010
Adam Jones Kingston RI 2 $250.00 March 17, 2010

You might also like