Top Banner

of 35

mcleod9e_pr09

Feb 21, 2018

Download

Documents

Arya Suputra
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/24/2019 mcleod9e_pr09

    1/35

    1

    PROJECT 9

    DATABASE FORMS ANDREPORTS

    Management Information Systems, 9theition,

    By Raymon M!"eo, Jr# an $eorge P# S!he%%& '((), Prenti!e *a%%, In!#

    http://vig.prenhall.com/home
  • 7/24/2019 mcleod9e_pr09

    2/35

    2

    Learning Objectives Learn to use an existing database file.

    Understand how to create a form for adatabase table.

    Learn how to generate data value restrictions

    for data fields on a form. Understand how to create reports based on a

    single database table and on multipledatabase tables.

    Learn to calculate summaries of fields on areport.

    Learn how to alter the format of reports.

  • 7/24/2019 mcleod9e_pr09

    3/35

    3

    Intro+!tion his project uses !ccess 2""2 #also $nown as

    !ccess %&' to create a form and several reportsfor an existing database

    he initial database can be downloaded from the

    &rentice (all )eb site for the text at))).&*+,(!LL.-O/-L+O0mcleod

    must be in lower4case letters

    he database for this project concerns classes and

    the boo$s used in those classes

    he database also contains records of students

    who have copies of boo$s to sell

  • 7/24/2019 mcleod9e_pr09

    4/35

    5

    EXAMPLE

    his example will generate a form for data entr6into the 7U0+, table

    8t will also create a report of class enrollments and

    a list of boo$s used in classes along with their

    prices hese exercises illustrate the common applications

    for which man6 people use a database

    his project uses the extboo$ database whichwill be provided b6 6our instructor or can be

    downloaded from the &rentice (all )eb site

  • 7/24/2019 mcleod9e_pr09

    5/35

    9

    Textbook Database he extboo$ database consists of four tables that

    relate to each other b6 common values. he tablesand their data fields are shown in :igure &;.1

    he 7U0+, table contains four fieldsoo$,umb= and-opieso7ell. he $e6 fields of the tables areshown in bold font

    :or the projects and assignments in this text 6ouwill onl6 have to use an existing database

    !n6 changes to the format or values in fields willbe accomplished through the use of forms andreports in this project

  • 7/24/2019 mcleod9e_pr09

    6/35

    ?

    Creating a Form

    +ntering data into a table can be aided b6 the useof a form

    able forms not onl6 allow for data entr6 but the6

    displa6 one record from a table at a time

    7ince a database table can contain ver6 man6records= displa6ing one record at a time can ma$e

    it easier for a user to view records

    8n our example we will create a form for the7U0+, table

  • 7/24/2019 mcleod9e_pr09

    7/35

    @

    One Table Report

    ! report on class enrollments can be made

    from the table -L!77

    he completed report should loo$ li$e

    :igure &;.15

    he class and the number of students

    enrolled is all that needs to be displa6ed

  • 7/24/2019 mcleod9e_pr09

    8/35

    A

  • 7/24/2019 mcleod9e_pr09

    9/35

    ;

  • 7/24/2019 mcleod9e_pr09

    10/35

    1"

  • 7/24/2019 mcleod9e_pr09

    11/35

    11

  • 7/24/2019 mcleod9e_pr09

    12/35

    12

  • 7/24/2019 mcleod9e_pr09

    13/35

    13

  • 7/24/2019 mcleod9e_pr09

    14/35

    15

  • 7/24/2019 mcleod9e_pr09

    15/35

    19

  • 7/24/2019 mcleod9e_pr09

    16/35

    1?

  • 7/24/2019 mcleod9e_pr09

    17/35

    1@

  • 7/24/2019 mcleod9e_pr09

    18/35

    1A

  • 7/24/2019 mcleod9e_pr09

    19/35

    1;

  • 7/24/2019 mcleod9e_pr09

    20/35

    2"

  • 7/24/2019 mcleod9e_pr09

    21/35

    21

  • 7/24/2019 mcleod9e_pr09

    22/35

    22

  • 7/24/2019 mcleod9e_pr09

    23/35

    23

  • 7/24/2019 mcleod9e_pr09

    24/35

    25

  • 7/24/2019 mcleod9e_pr09

    25/35

    29

  • 7/24/2019 mcleod9e_pr09

    26/35

    2?

  • 7/24/2019 mcleod9e_pr09

    27/35

    2@

    Reort from M+%ti%e Ta-%es &art of the *eport of >oo$s Used in +ach -lass is

    shown in :igure &;.2". 8t reBuires information fromthe >OOC table as well as the -L!77 table

    he boo$s used for each class are shown with theboo$ priceD at the end of each class record the sum

    of prices for the boo$s used in the class is displa6ed o achieve the abilit6 to ma$e a sum= the report has

    to be grouped on a field. 8n this report the field-lass,umb is used for grouping and the prices of

    boo$s used in each member of the group aresummed

    ! header and a footer can be created for an6 datafield upon which a group is formed

  • 7/24/2019 mcleod9e_pr09

    28/35

    2A

  • 7/24/2019 mcleod9e_pr09

    29/35

    2;

  • 7/24/2019 mcleod9e_pr09

    30/35

    3"

  • 7/24/2019 mcleod9e_pr09

    31/35

    31

  • 7/24/2019 mcleod9e_pr09

    32/35

    32

  • 7/24/2019 mcleod9e_pr09

    33/35

    33

    ASSIGMET1. a$e a form for the -L!77 table. &lace both the

    -lass,umb and +nrollment fields in the form. :or the+nrollment field on the form= create a validation rule thatthe value must be less than or eBual to 2"". )hen thevalidation rule is violated a message should appear stating+nrollment ust >e Less han Or +Bual o 2"".

    2. a$e a report of boo$s used in each class. he finishedreport should loo$ similar to :igure &;.29. ,ote an6changes in labels from the default field names. ove thelabels 7um and Erand otal to be on the right4hand sideof the totals. a$e sure 6our fields are wide enough to show

    the entire field valueD that is= do not let the boo$ titles gettruncated b6 fields that are too narrow. a$e sure 6ourreport design does not go past ?.9 inches wide= which wouldcause blan$ pages to appear.

  • 7/24/2019 mcleod9e_pr09

    34/35

    35

  • 7/24/2019 mcleod9e_pr09

    35/35

    39

    ED OF PRO!ECT "