SlideShare a Scribd company logo
1 of 96
Microsoft Access
Database Creation and Management
Overview of Access Database
īŽ One of database management systems
software.
īŽ Access, SQL Server, Oracle, DB 2
īŽ MS Access is a relational database.
īŽ a collection of tables that are related to one
another based on a common field.
Relational Database
A schematic diagram of a relational database (a) and a sample part of a
relational database showing different tables (b)
Open an existing database
īŽ Create a folder by your last name in My
documents or on Desktop
īŽ Download “Restaurant1” database into the folder
by your last name then, open the “Restaurant1”
database
īŽ To open an existing database, you must first start
Access
īŽ When Access is launched you will see the Access window,
with the task pane on the right side of the window.
īŽ From the task pane, you can open an existing database.
īŽ Or simply double-click the existing database to open.
How Access creates and saves a new
database
īŽ Create a new database
īŽ Your first activity (before question #1) for the midterm
is creating a new database.
īŽ Database name: your last name + first initial of first name
īŽ When you press the Save button in Access, you are
saving the design of the Access objects and NOT the
database itself!
īŽ The Save function in Access differs from the Save function in
other Windows programs.
Characteristics of Relational DB
īŽ In a relational database, each record (row)
in a table must be uniquely identified.
īŽ Using Primary Key
īŽ A relational database is a collection of
tables that are related to one another
based on a common field.
īŽ Using Foreign Key (& Primary Key)
Primary Key (PK) & Foreign Key (FK)
īŽ PK: A field that uniquely identifies each record in a
table.
īŽ SS#, Student ID
īŽ It does not have to be first field.
īŽ FK: A field that connects one table logically with
another table
īŽ Rule of Thumb: PK = FK (value) – see next slide
Relating tables using PK and FK
The primary key in the
Employer table (EmployerID)
is the common field that
relates this table to the
Position table.
PositionID is the primary key in
the Position table. The
EmployerID field is a foreign key
in this table.
Primary keys can only have one
occurrence in a table. Foreign keys
may have multiple occurrences.
Valle Coffee’s Restaurant DB
īŽ Valle is a small distributor of inexpensive coffee beans
to various restaurants. Barbara Hennessey, the Director
of CRM, and her staff use Access to maintain company
data such as customer orders and billing, coffee supplier
orders and payments, and advertising placements and
payments. Barbara has a recently developed database
named Restaurant 1 to track the company’s
restaurant customers, their orders, and related data
such as the products they order. She asks for your help
in completing and maintaining this database.
Descriptions of Restaurant DB
īŽ Valle coffee’s Restaurant 1 database will
contain five tables:
īŽ Customer table, which Barbara already has.
īŽ Order table, which you will create soon.
īŽ Product and Order Detail tables, which you
will import from FineFood database.
īŽ Billing Address table that is in Excel format
and you will import it, and then convert to Access
table.
Creating a Order table
īŽ Barbara wants to track information about each order
placed by each restaurant customer. This information
includes the order’s billing date and invoice amount.
Barbara asks you to create a second table in the
Restaurant database, named Order, in which to store
the order data.
Creating a Order table
īŽ Use Design view
īŽ Case sensitive
īŽ NUMBER vs. number
īŽ Exact match of each name
īŽ Use tap key to enter data
īŽ Especially, when you enter data in datasheet view.
Access data (field) type
Make certain the field type you select matches the data to be held in that field.
Access data (field) type (con’t)
Additional Access field types.
Creating the Order table
Field Name Data Type Description Field Properties
OrderNum Text primary key Field size (3), Required (Yes)
CustomerNum Text foreign key Field size (3)
BillingDate Date/Time
PlacedBy Text person who
placed order
Field size (25)
InvoiceAmt Currency
Adding Records to a Table
īŽ Enter data sequentially in Datasheet view
īŽ Do not jump from field to field
īŽ Use tap key to enter data
OrderNum CustomerNum BillingDate PlacedBy InvoiceAmt
323 624 02/15/2001 Mike Smith $1,986.00
201 107 01/15/2001 Matt Davis $854.00
Modifying a Table
īŽ From the Order table
īŽ Delete the PlacedBy field
īŽ Move the BillingDate field to the end of the table
īŽ Insert the Paid as a new field between CustomerNum and
InvoiceAmt (position) fields
īŽ data type: Yes/No
īŽ default value: No (means “unpaid”)
īŽ Add following data to each filed: 211, 201, paid (mark the
check box using space bar), $703.50, 01/15/2001
Practice: Creating a DB
īŽ Barbara needs a database to track the coffee
products offered by Valle Coffee. She asks you to
create the database by completing the following:
īŽ In the initial Microsoft Access dialog box, click the
blank Access database option button, and then click
OK button. Click the Create button the new
database.
īŽ YOUR LAST NAME DB file name
īŽ Display the Table window in Design view (if
necessary), and then create a table using the table
design shown in the next slide.
Practice: Creating a Table
īŽ Specify ProductCode as the primary key, and then save the table as
Product.
īŽ Add the product records shown in next slide table to the Product table.
(Hint: You must type the decimal point when entering the Price field
values.)
Field Name Data Type Description Field Properties
ProductCode Text Primary Key Field size (4), Required: Yes
CoffeeCode Text Foreign Key Field size (4)
Price Currency Price for this product
Decaf Text D if decaf, Null if
regular
Field size (1), Default Value: D
BackOrdered Yes/No back-ordered from
supplier?
Default Value: No
Practice: Modifying a Table
īŽ Add a new field between the CoffeeCode and Price fields, using these
properties;
īŽ Field Name:WeightCode
īŽ Data Type: Text
īŽ Description: foreign key
īŽ Field Size: 1
īŽ Move the Decaf field so that it appears between the WeightCode and
Price fields.
ProductCode CoffeeCode Price Decaf BackOrdered
2316 JRUM 8.99 Yes
9754 HAZL 40.00 D Yes
9309 COCO 9.99 D No
Practice: Updating a Table
īŽ Enter these WeightCode values for the three records: A for
ProductCode 2316, A for ProductCode 9309, and E for
ProductCode 9754.
īŽ Add a record to the Product datasheet with these field values:
īŽ ProductCode: 9729
īŽ CoffeeCode: COLS
īŽ WeightCode: E
īŽ Decaf: D
īŽ Price: 39.75
īŽ BackOrdered: Yes
Data Integrity (PK Rule)
īŽ No “null” value can be allowed.
īŽ No two records can have the same primary key.
īŽ No two CSUB students can have same ID number.
īŽ A PK can be “composite key”
īŽ Example on class web page
īŽ “Composite PK Example”
īŽ More than one field can be used as a PK (composite)
īŽ CSUB: student ID + SS#
Referential Integrity (FK Rule)
īŽ A field that connects one table logically with another
table.
īŽ Exception example on class web page
īŽ “PK as FK” there are two tablesâ€Ļ
īŽ Related table: Shipping Address table
īŽ Primary table: customer table
Importing External Access Table and
Excel Worksheet
īŽ Barbara also wants you to include the Product and
Order Detail tables from the FineFood database in
the Restaurant database.
īŽ Download and Review design view of FineFood
DB first
Importing External Access Table and
Excel Worksheet (con’t)
īŽ And she wants you to include the Billing Address
Excel worksheet as a Access table in the Restaurant
database.
īŽ Before try to import the excel file, review it first
īŽ Use Excel column headings for Access table
īŽ PK: CustomerNum
īŽ Specify in the description area of Design View that
CutomerNum is not only primary key of
BillingAddress table but also a foreign key of
Customer table.
Access is a relational database
īŽ Access allows you to form relationships between the
tables; that’s why it’s called a relational database
īŽ The simplest way to create a relationship
īŽ Look for identical field names between tables.
īŽ Tables can be joined in three ways; one-to-one, one-
to-many, and many-to-many.
An example of a
one-to-many relationship
The Employer table is related to the Position table via the common field EmployerID.
The Employer table has
one record for EmployerID
value 10126. The Position
table has two records.
A one-to-one relationship
īŽ A one-to-one relationship exists when one
table has one record associated with only
one record of another table.
īŽ As we saw from PK as FK database
īŽ Shipping Address table is an related table.
īŽ Primary table: customer table
īŽ Primary key is also foreign key: only Access
Using referential integrity
īŽ Referential integrity allows you to maintain the
integrity and consistency between related tables.
īŽ If you choose to enforce referential integrity, you can insure
that you will not have records that have no matching record
in the primary table.
īŽ The rules associated with referential integrity specify
that when you update or delete a record (PK) in the
primary table, a matching record (FK) in the related
record must be updated or deleted.
Use cascade update
and cascade delete
īŽ In referential integrity, there are two options.
īŽ If you choose cascaded updates, making a change in a field
that is common to two related tables will cause the update
to be made in both tables.
īŽ If you delete a field that is common to two tables, the
deletion will take place in both tables.
īŽ Enforcing Access Referential integrity Rules
īŽ Try Referential Integrity Example DB on the class
web page.
Creating Relationships
īŽ Download Restaurant2 file from the class web
īŽ Create relationships using 5 table
īŽ In terms of creating a relationship between Customer and
BillingAddress, start from the Customer table.
īŽ Enforce both cascade options
īŽ Primary key of the Order Detail table
īŽ Combination of OrderNum and ProductCode
īŽ Otherwise, a duplication of the quantity field in both the
Order and Product tables.
Practice: Creating Relationship 1
īŽ Create a blank database (use any name you like) And
then, import the three Excel Worksheets (Course,
Instructor, and Membership) from the class web site
into your Access database.
īŽ Define each imported table’s primary key using
information below:
īŽ Course table: Class_Number
īŽ Instructor table: Employee_Number
īŽ Membership table: Member_Number
Practice: Creating Relationships 2
īŽ Establish relationship based on common fields.
īŽ And enforce referential integrity (apply both options)
among three imported tables
What is an Access query?
īŽ You can create a query when you need ONLY a portion of the
data form tables (or existing queries).
īŽ For example, you may only need to see customers who live in CA.
The response would be to display only the records whose state
field matches with CA.
īŽ Multiple tables or queries can be used.
īŽ Restrictions can be used
īŽ Comparison operators
īŽ The design view is used to specify the fields and records you
want to see.
The Query Design view window
Fields used in the query are selected from
the field list and added to the design grid.
You can run the query at any
time by clicking the Run button.
Creating a Sample Query
īŽ Kim Carpenter, the director of marketing at the Valle,
wants a list of all restaurant customers so that her
staff can call customers to check on their satisfaction
with Valle coffee’s services and products. She wants
to have only followings; CustomerName, City,
State, OwnerName, and Phone.
īŽ Use restaurant 3 database
īŽ Save the query as First Customer List.
OrderNum CustomerNum Paid InvoiceAmt BillingDate
201 107 No 854.00 01/15/2001
OrderNum ProductCode Qty
201 2834 11
ProductCode CoffeeName Weight/Size Price Decaf
2301 Colombian Aged Crop 1 lb pkg 7.99
Billing Address Table
Customer Table
Order Table
Order Detail Table
Product Table
CustomerNum CustomerName Street City State ZipCode OwnerName Phone FirstContact
000 Choi COB 105 CSUB CA 93311 Scott Choi 5348 09/20/2001
CustomerNum BillingName Street City State Zip
129 Sandy Lookout
Restaurant
PO Box 2800 Grandville MI 49468
More about a Query
īŽ When you use the query design window, you use
Query By Example (QBE).
īŽ Do not include any unnecessary tables or queries in
Design View of the query.
īŽ Otherwise, you have to deal with unexpected problems.
īŽ In your midterm, you will be penalized if you include
unnecessary tables or queries.
īŽ Always use a primary table.
īŽ CustomerNum: Customer vs. BillingAddress
īŽ Restrictions can be used as well.
Creating Queries using
Multiple Tables
īŽ Since there have been some major changes in the
Restaurant database, Barbara wants to make sure
that the database is reliable. In order to test the
reliability of database query function, She wants
you to generate a query. The query must include
following fields: Order Number, Coffee Name,
Quantity, Price, and Weight/Size.
īŽ Save as Test
īŽ Should select OrderNum from the Order table
(primary table)
Querying and Sorting of
multiple Tables
īŽ Barbara wants to have following information for the
upcoming quarterly report: CustomerName, City,
State, BillingDate, InvoiceAmt, Paid, and First
Contact.
īŽ At same time, Barbara wants to sort the records by
the InvoiceAmt field in ascending order.
īŽ Barbara also wants to move the Paid field between
the State and BillingDate field.
īŽ Save as Customer Orders
Words begin or end with a: LIKE a* or LIKE *a
Find between values: (NOT) BETWEEN 45000 AND 78000
Find exact match value: 1/10/2005
Expressions
Find an Exact Match
īŽ Barbara would like to have a list of all orders billed
on 01/15/2001.
īŽ The list must include following fields; OrderNum,
Paid, InvoiceAmt, BillingDate, CustomerName,
State, OwnerName, and Phone
īŽ Save as Jan Orders
Using Like a*
īŽ Barbara wants to know a list of all Customer Names
that begins with M. The list must include following
fields; Customer Name, Order Number, First
Contact and Billing Date. In addition, the Order
Number must be sorted in ascending order.
īŽ Save as Customer Name Begins With M
Using Between ** and **
īŽ Barbara wants to know a list of all Product Code
between 2465 and 2763. The list must include
following fields; Product Code, Coffee Name and
Price.
īŽ There should a space between number and word
īŽ Save as Product Code Between 2465 And 2763.
Using Greater than (>)
īŽ Barbara wants to know those records whose
InvoiceAmt exceeds $2,000.
īŽ Use the Customer Orders query.
īŽ The query must include only following fields;
Customer Name, Invoice Amount, and Billing
Date.
īŽ Save as High Invoice Amounts
Using And and Or Operators
The And
condition.
The Or
condition.
Creating And and Or conditions
in the design grid
And conditions must be
specified on the same line.
Or conditions must be specified on different lines.
Using AND
īŽ Leonard asks Barbara for a list of orders billed on
01/15/2001 that are still unpaid. He wants to know
which customers are slow in paying their invoices.
īŽ Use the Customer Orders query again and make
sure that this query includes following fields;
CustomerName, Paid, BillingDate, and
InvoiceAmt.
īŽ 01/15/2001 AND unpaid (No)
īŽ Save as Unpaid Jan Orders
Using OR
īŽ Leonard wants to determine which restaurant
customers are most valuable to Valle Coffee.
Specifically, he wants to see a list of those customers
who have been placing orders for many years
(specifically, first contact date - earlier than
01/01/1994: <=01/01/1994 ) OR who place orders
for a substantial amount of money (greater than
$2,000: >2000), so that he can call the customers
personally and thank them for their business.
Using OR
īŽ Make sure that this query includes following fields;
CustomerName, InvoiceAmt, and First Contact.
īŽ He also wants to have a sorted output in
ascending order based on the customer name.
īŽ If you want, you can use the Customer Orders
query again
īŽ Save as Top Customers
A calculated field in
the query datasheet
Expression Builder adds your calculated field to the query design grid. You can then
assign it a name, which will display in query datasheet view when the query is run.
Use of “Build” Function
Performing Calculation
īŽ Leonard is considering adding a 2% late charge to
the unpaid invoices. He only wants to include
following fields; Customer Name, Paid, Billing
Date, and Invoice Amount.
īŽ Set unpaid field to “No”
Performing Calculation
īŽ And he wants to know exactly what these charges
would be. He wants to create a new field “Late
Charge” right after InvoiceAmt field and then use it
to calculate late charge.
īŽ Late charge formula: InvoiceAmt*0.02
īŽ Save as Unpaid With Late Charge
Using Aggregate Functions
īŽ Barbara prepares a report of Valle coffee’s restaurant
business for Leonard on a regular basis. The
information in the report should include a summary
of the restaurant invoice statistics: the total invoice
amount for all orders, the average invoice
amount, and the number of orders (same as
number of invoice amount). She asks you to
create these statistics.
Using Aggregate Functions
Access has several Aggregate
Functions that can be used to
calculate various statistical
information.
Aggregate functions are specified in the
Total row of the design grid. They can
be assigned by clicking the Totals
button on the Query Design toolbar.
Using Aggregate Functions
īŽ She also wants you assign a new field as follows;
īŽ Total of Invoices ( total invoice amount for all
orders)
īŽ Average of Invoices (average invoice amount)
īŽ Number of Orders (number of invoice amount)
īŽ Save as Invoice Statistics
Using Record Group Calculations
īŽ Barbara’s another report to Leonard also includes the
same invoice statistics (total, average, and count).
Because Valle Coffee sends invoices to its
customers each month (Jan invoice, Feb Invoice,
and March invoice), each invoice has the same
billing date. Barbara asks you to display the
invoice statistics for each month (billing date).
īŽ Grouping by each month
Using Record Group Calculations
īŽ Calculate statistics for groups of records
īŽ Average salary by the position
īŽ Number of employees in each department
īŽ Group By operator
īŽ Divides the selected records into groups based on the values
in the specified field
īŽ Those records with the same value for the field are grouped
together.
īŽ Save as By Billing Date
Query Practice 1
īŽ Download a database: “Roadrunner”
īŽ I would like to have a query that includes following
fields; Employee Number, Instructor Last Name,
Instructor First Name, Course Name and Time.
īŽ Save as Your Course Info.
īŽ I would like to have a query that ONLY includes the
male members who live in Burbank using following
fields; First Name, Last Name, Gender, City, and
State.
īŽ Save as Males in Burbank.
Query Practice 2
īŽ I would like to know a list of all members whose last
name begins with P using following fields; First
Name, Last Name, City, and State.
īŽ Save as Last Names begin with P.
Query Practice 3
īŽ I would like to know ONLY the Employee Number,
Instructor Last name, Instructor First name, and the
Salary Amount for only those employees who make
between $39,500 and $55,000. In addition, the
resulting salaries must also be placed in order from
high salary to low salaries.
īŽ Save as Between Salaries.
Query Practice 4
īŽ I would like to know the Class Number, Last Name,
and Member Number for each member who has a
class number greater than or equal to 8900. In
addition, sort last names in ascending order.
īŽ Save as Greater than or equal to 8900.
Query Practice 5
īŽ I would like to know a list of all members whose last
name that begins with A or a first name that begins
with R including the following fields: First Name, Last
Name, City, and State.
īŽ Save as Names with A or R.
Query Practice 6
īŽ I would like to know an instructor who teaches
handball and students who are taking handball
course. Following fields must be appear on the
query: Instructor First Name, Instructor Last Name,
Course Name, Member Last Name and Member First
Name. In addition, the member last names should be
sorted in alphabetical order.
īŽ Save as Handball Listing
Query Practice 7
īŽ I would like to know a whole list of the Instructor
Last name, Instructor First name, and the Salary
Amount. Since instructors have worked hard, I would
like to increase their salary by 15%. So, I’d like to
calculate 15% salary increase for each instructor.
īŽ Save as Salaries Increase
Query Practice 8
īŽ I would like to know the Sum, Average, Max. and
Min. of employees salary (These four items must all
appear in the same query).
īŽ Save as Salary Calculations
īŽ I would like to know the Sum, Average, Max. and
Min. of employees salary based on Employee Type.
īŽ Save as Employee Type
Forms
īŽ Forms are used to customize your data entry screen.
īŽ Forms are created for the convenience of the user.
īŽ Forms are used to update Data Tables.
īŽ You can change locations of fields and colors very
easily in the Design screen.
Creating a Form
īŽ After Kim leaves for her staff meeting, Barbara asks you to
create a form for the Customer table because the staff are not
allowed to access the database directly. The staff members
should be allowed only for entering data. But, using a form, the
staff can work data easily in the table.
īŽ Download “Restaurant 3” database again.
īŽ Open Customer table to identify # of records (38)
īŽ Create using “Form Wizard”
īŽ Layout: Columnar & Style: International
īŽ Save the form as Test Form
Adding a Record into the Form
īŽ Add following information as a Record No.39
customer;
īŽ CustomerNum: 000
īŽ CustomerName: Your Last Name
īŽ Street, City, State, and ZipCode: Your Address
īŽ OwnerName: Your Full Name
īŽ Phone: Your Phone Number
īŽ FirstContact: 09/20/2001
īŽ A record No. 39 added to the Customer table (it’s has
been altered).
Modifying a Form
īŽ Modify the Test form based on below requirements
using the Design View of Form
īŽ Make sure that City, State, and Zip Code are on the same
line
īŽ Title of field: Label box
īŽ Actual entry space: text box
īŽ In order to move both boxes together, place the cursor
between LABEL and TEXT boxes. Then, the shape of cursor will
be changed to a black colored hand.
Modifying a Form (con’t)
īŽ Put a space between words for followings:
īŽ CustomerName, OwnerName, and FirstContact
īŽ Change CustomerNum to Customer No
īŽ Change Phone to Phone Number
īŽ Add a label in the Form Header section in order to
create a title of this form. The title (use label button
from the Toolbox) for the form should be
Customer Data Entry Form.
īŽ The font size of the title should be a minimum of 20
and the title must be centered.
Forms Practice
īŽ Create a form for the Membership Table from the
Roadrunner database. Begin your form with the
Wizard and then modify it so that:
īŽ Member Number is on the top line
īŽ Last Name and First Name is on the same line
īŽ Address is on a line by itself
īŽ City and State are on the same line
īŽ Class Number and Gender are on the same line
īŽ The labels for Member Number, Last Name, Address, City,
and Class Number should all be lined up vertically with the
same left border/margin
Forms Practice (con’t)
īŽ The labels for First Name, State, and Gender should
all line up vertically with the same left border/margin.
īŽ You must also space out your fields and rows so that
there is plenty of space around each field.
īŽ They should not be crowded together.
īŽ You should also add a label to your form in the Form
Header section. The label (use label button)for your
form should be Membership Data Entry Form.
īŽ The font size should be a minimum of 16 point
font.
īŽ Your title must also be centered.
Forms Practice (con’t)
īŽ You will need to change the font color of your
label text and the fill color for your label text
so that your form label is easily viewable on your
computer screen, given the style color/pattern that
you selected for your background.
īŽ Save as Membership Data Entry Form.
Reports
īŽ Reports are used to “Dress Up” or summarize
your data.
īŽ Reports can be made from a Table or Query.
īŽ You can use a Wizard to create your reports or
you can customize them to fit your needs.
īŽ You can specify sorting orders and you can also
group data.
Creating a Report
īŽ Kim returns from her staff meeting with another request.
īŽ She wants to have a list of OrderNum, CustomerNum,
Paid and InvoiceAmt. from the Order table. She’d
like the information presented in a more readable format
for senior managers.
īŽ Create using “Report Wizard”
īŽ Layout: Tabular and others
īŽ Group by: CustomerNum
īŽ Sort the InvoiceAmt in descending order
īŽ Save the report as Order List
Modifying a Report
īŽ Insert CSUB logo upper-right corner of the report
īŽ The title is Order List report. Title requirements;
īŽ The title must be centered. Change background and font
color. Change font size to 24.
īŽ Put a space between words for followings:
īŽ OrderNum
īŽ CustomerNum
īŽ InvoiceAmt
Modifying a Report (con’t)
īŽ Change order Num to Order No
īŽ Change Customer Num to Customer No
īŽ Change InvoiceAmt to Invoice Amount
īŽ Widen out the heading names and field entries so
that nothing is cut off. Space out your data fields
as well. Also, adjust vertical alignment of
each field. All words in the report must be clearly
visible.
Report Practice
īŽ We will make a report that combines elements of the
Instructor Table with elements from the Course
Table.
īŽ From the Instructor Table, your report will include
Employee Number and Instructor Last Name.
From the Course Table, your report will include
Class Number, Course Name, and Time.
īŽ You need to group by Employee Number. Class
Number should be sorted in ascending order.
The report is called Teaching Assignments.
Report Practice (con’t)
īŽ After you create the basic form of the report using
the Wizard, we will next need to go into the design
screen and customize the report. Center the title
in the middle of the page.
īŽ Change Employee_Number to Employee No.
īŽ Change Instructor_Last to Instructor.
īŽ Change Class_Number to Class.
īŽ Change Course_name to Course
īŽ Widen out the heading names and field entries so
that nothing is cut off. Space out your data
fields. All words in the report must be clearly
visible.
Preview your report before
printing it
Use the Print Preview
option to see if the report
is as you want it to be. If
not, make your changes
and use Print Preview
again.
Create a form with a
main form and a subform
īŽ Try Microsoft Forms II tutorial
īŽ You can create a form with a subform on two tables
that have an established relationship.
īŽ When the relationship between the tables is a one-
to-many relationship, the main form will consist of
data from the primary table and the subform will
consist of data from the related table.
īŽ By selecting two related tables in the Form Wizard, you can
produce a form with a subform.
īŽ The form with subform is a great way to display data for
tables that have a one-to-many relationship.
Form Wizard Form/Subform
dialog box
Tables or queries used
for the form and
subform display here.
Main form fields
are shown here.
Subform fields
are shown here.
Form and subform data
īŽ Notice in the following figure that the main form
contains information about the employer whose ID is
10122.
īŽ The data in the subform are positions that this
particular employer has available.
īŽ Also notice that you have two sets of navigation
buttons. You can navigate the data for either form.
īŽ The outer navigation buttons apply to the main form
īŽ The inner navigation buttons apply to the subform
An example of a Form with
subform
The main form
name appears in
the title bar.
The main form.
The subform
navigation bar.
The main form
navigation bar.
The subform.
Relationship of Main/Sub Form
īŽ To create a form based on two tables, a relationship
between the two tables must be defined first.
īŽ Access Form Wizard automatically divide into
main/subform format.
īŽ One (customer) – to – many (Order)
īŽ Primary table: Customer (main form)
īŽ Related table: Order (sub form)
Creating a Main/Sub Form
īŽ Barbara wants you to create a form so that she can
view the data for each customer and all the orders
for the customer at the same time. The form must
have following information: CustomerNum,
CustomerName, OwnerName, OrderNum, Paid,
InvoiceAmt, and BillingDate.
īŽ Use the Form Wizard.
īŽ Subform layout: Datasheet & Style: International
īŽ Save as Customer (main form) and Order (subform)
Creating an Advanced Report
īŽ Kim would like to have a more friendly and easy to
read report for senior managers. She needs
following fields from both Customer and Order
tables:
īŽ CustomerNum, CustomerName, Phone, First
Contact, OrderNum and InvoiceAmt
īŽ View by: Customer table, Group by: CustomerNum, and
Sort by: OrderNum field in Ascending order, and Layout:
Stepped
īŽ Modify your reportâ€Ļ..so, look NICE!!
īŽ Save as Customer Orders
Creating Web-Enabled
Information
īŽ Barbara feels that other employees in the company
would benefit from gaining access to the Restaurant
Database. Leonard asks whether the database can be
made available to employees over the company
network (I.e., Intranet). That way, employees could
obtain company information using their desktop
computers rather than using paper forms. Most
employees, such as the customer representatives in
the marketing department, do not need to access to
the entire database, nor should they be able to make
changes to the database objects.
Creating a Static Web Page
īŽ Leonard has asked you to create an HTML document
for the Customer table. He wants this data to be
available to customer representatives working outside
the office. Leonard wants you to create static Web
pages because the customer representatives need to
view them only once a month to complete their
monthly status reports.
īŽ Select the Customer table from Restaurant
Database
īŽ File name: Customer
īŽ Open the table using any Internet Browser
Creating an Static Web Page
īŽ Easy to create and maintain
īŽ Stored outside the database
īŽ Simple to publish
īŽ Only reflect the state of the Customer table at
the time it was created.
īŽ Does not allow continuous update because
it’s not linked to the Customer table on which
it is based.
Creating a Dynamic Web Page
(Data Access page)
īŽ Barbara asks if it’s possible to create a
dynamic Web page using the Customer
table that her staff members can update
using their browsers.
īŽ Use the Pages Objects
īŽ Save as Customer
īŽ A data access page is a dynamic HTML document.
Creating a Dynamic Web Page
(Data Access page)
īŽ When you open a data access page, you are
viewing current data from the data access page,
then you can use the data access page to view or
update the data in the database using a Web
browser (at least MS Explorer version 5).
īŽ A data access page can be stored outside the
database as separate HTML documents.
īŽ If a single table or query is the basis of the data
access page, then you can use the data access
page to update the data in the database.
īŽ However, if two or more related tables are the
basis for the data access page, then you can only
view the data (no update).
Importing an Html Document as
an Access Table
īŽ Download and then open NewRest HTML
document.
īŽ Close NewRest HTML document.
īŽ Import NewRest HTML document into
Restaurant database.
īŽ Let the Access choose the primary key.
īŽ Save as Potential Customers
Importing and Exporting an XML
Document
īŽ Download Loans XML document.
īŽ Universal way to transmit data because of the Internet
īŽ Import Loans XML document into Restaurant
database.
īŽ Save as Loans XML
īŽ Export Customer table as an XML document

More Related Content

Similar to Microsoft Access ppt.ppt

Database Relationships
Database RelationshipsDatabase Relationships
Database Relationshipswmassie
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt1520lakshyagupta
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptwondmhunegn
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptJoselitoTan2
 
1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx
1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx
1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docxhyacinthshackley2629
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010home
 
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxhumphrieskalyn
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxEsubalew21
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxdanhaley45372
 
Ppt Lesson 13
Ppt Lesson 13Ppt Lesson 13
Ppt Lesson 13ayetalviola
 
Cis 336 cis336 week 5 i lab 5 devry university
Cis 336 cis336 week 5 i lab 5 devry universityCis 336 cis336 week 5 i lab 5 devry university
Cis 336 cis336 week 5 i lab 5 devry universitymiteamosku
 
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docxPart 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docxhoney690131
 
Part 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docxPart 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docxodiliagilby
 
Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxEsubalew21
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 5CIS339
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 5jackiechaner
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 57Fase1
 
MS Access Ch 2 PPT
MS Access Ch 2 PPTMS Access Ch 2 PPT
MS Access Ch 2 PPTprsmith72
 

Similar to Microsoft Access ppt.ppt (20)

Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt
 
MS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.pptMS-Access Tables Forms Queries Reports.ppt
MS-Access Tables Forms Queries Reports.ppt
 
1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx
1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx
1Copyright Š 2014 Pearson Education, Inc. Publishing as Pren.docx
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010
 
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docx
 
Ppt Lesson 13
Ppt Lesson 13Ppt Lesson 13
Ppt Lesson 13
 
Cis 336 cis336 week 5 i lab 5 devry university
Cis 336 cis336 week 5 i lab 5 devry universityCis 336 cis336 week 5 i lab 5 devry university
Cis 336 cis336 week 5 i lab 5 devry university
 
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docxPart 1 - Microsoft AccessView GlossaryUse Access to create a.docx
Part 1 - Microsoft AccessView GlossaryUse Access to create a.docx
 
Part 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docxPart 2Supplier Database (MS Access)As you recall, data is a.docx
Part 2Supplier Database (MS Access)As you recall, data is a.docx
 
Ms Access
Ms AccessMs Access
Ms Access
 
Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptx
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 5
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 5
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 5
 
Cis336 week 5 i lab 5
Cis336 week 5 i lab 5Cis336 week 5 i lab 5
Cis336 week 5 i lab 5
 
MS Access Ch 2 PPT
MS Access Ch 2 PPTMS Access Ch 2 PPT
MS Access Ch 2 PPT
 

More from JoshCasas1

Understanding Technologies In Education for the Third Quarter
Understanding Technologies In Education for the Third QuarterUnderstanding Technologies In Education for the Third Quarter
Understanding Technologies In Education for the Third QuarterJoshCasas1
 
MOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptx
MOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptxMOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptx
MOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptxJoshCasas1
 
Combined 2nd Section 4900 Slides.ppt
Combined 2nd Section 4900 Slides.pptCombined 2nd Section 4900 Slides.ppt
Combined 2nd Section 4900 Slides.pptJoshCasas1
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.pptJoshCasas1
 
csce411-set7.ppt
csce411-set7.pptcsce411-set7.ppt
csce411-set7.pptJoshCasas1
 
Chapters_1_2.ppt
Chapters_1_2.pptChapters_1_2.ppt
Chapters_1_2.pptJoshCasas1
 
JOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptx
JOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptxJOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptx
JOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptxJoshCasas1
 
L2 COMPUTER ETHICS PPT [Autosaved].pptx
L2 COMPUTER  ETHICS  PPT [Autosaved].pptxL2 COMPUTER  ETHICS  PPT [Autosaved].pptx
L2 COMPUTER ETHICS PPT [Autosaved].pptxJoshCasas1
 
Essential Access Exercises week 1-4.pdf
Essential Access Exercises week 1-4.pdfEssential Access Exercises week 1-4.pdf
Essential Access Exercises week 1-4.pdfJoshCasas1
 
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.pptMS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.pptJoshCasas1
 
M0DULE 1-MS ACCESS Databases and Database Objects.pdf
M0DULE 1-MS ACCESS Databases and Database Objects.pdfM0DULE 1-MS ACCESS Databases and Database Objects.pdf
M0DULE 1-MS ACCESS Databases and Database Objects.pdfJoshCasas1
 
MICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdf
MICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdfMICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdf
MICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdfJoshCasas1
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptJoshCasas1
 
LESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdf
LESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdfLESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdf
LESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdfJoshCasas1
 

More from JoshCasas1 (14)

Understanding Technologies In Education for the Third Quarter
Understanding Technologies In Education for the Third QuarterUnderstanding Technologies In Education for the Third Quarter
Understanding Technologies In Education for the Third Quarter
 
MOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptx
MOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptxMOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptx
MOST SUCCESSFUL ENTREPRENEURS PRESENTATION (1).pptx
 
Combined 2nd Section 4900 Slides.ppt
Combined 2nd Section 4900 Slides.pptCombined 2nd Section 4900 Slides.ppt
Combined 2nd Section 4900 Slides.ppt
 
270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt270_1_CIntro_Up_To_Functions.ppt
270_1_CIntro_Up_To_Functions.ppt
 
csce411-set7.ppt
csce411-set7.pptcsce411-set7.ppt
csce411-set7.ppt
 
Chapters_1_2.ppt
Chapters_1_2.pptChapters_1_2.ppt
Chapters_1_2.ppt
 
JOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptx
JOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptxJOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptx
JOSHUA A. CASAS (FILIPINO VALUES SYSTEM AND CHANGE).pptx
 
L2 COMPUTER ETHICS PPT [Autosaved].pptx
L2 COMPUTER  ETHICS  PPT [Autosaved].pptxL2 COMPUTER  ETHICS  PPT [Autosaved].pptx
L2 COMPUTER ETHICS PPT [Autosaved].pptx
 
Essential Access Exercises week 1-4.pdf
Essential Access Exercises week 1-4.pdfEssential Access Exercises week 1-4.pdf
Essential Access Exercises week 1-4.pdf
 
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.pptMS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
 
M0DULE 1-MS ACCESS Databases and Database Objects.pdf
M0DULE 1-MS ACCESS Databases and Database Objects.pdfM0DULE 1-MS ACCESS Databases and Database Objects.pdf
M0DULE 1-MS ACCESS Databases and Database Objects.pdf
 
MICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdf
MICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdfMICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdf
MICROSOFT ACCESS 2016Basics-Handouts and LESSON Introduction.pdf
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 
LESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdf
LESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdfLESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdf
LESSON 1- MICROSOFT ACCESS CREATING DATABASE.pdf
 

Recently uploaded

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
đŸŦ The future of MySQL is Postgres 🐘
đŸŦ  The future of MySQL is Postgres   🐘đŸŦ  The future of MySQL is Postgres   🐘
đŸŦ The future of MySQL is Postgres 🐘RTylerCroy
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 

Recently uploaded (20)

Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
đŸŦ The future of MySQL is Postgres 🐘
đŸŦ  The future of MySQL is Postgres   🐘đŸŦ  The future of MySQL is Postgres   🐘
đŸŦ The future of MySQL is Postgres 🐘
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

Microsoft Access ppt.ppt

  • 2. Overview of Access Database īŽ One of database management systems software. īŽ Access, SQL Server, Oracle, DB 2 īŽ MS Access is a relational database. īŽ a collection of tables that are related to one another based on a common field.
  • 3. Relational Database A schematic diagram of a relational database (a) and a sample part of a relational database showing different tables (b)
  • 4. Open an existing database īŽ Create a folder by your last name in My documents or on Desktop īŽ Download “Restaurant1” database into the folder by your last name then, open the “Restaurant1” database īŽ To open an existing database, you must first start Access īŽ When Access is launched you will see the Access window, with the task pane on the right side of the window. īŽ From the task pane, you can open an existing database. īŽ Or simply double-click the existing database to open.
  • 5. How Access creates and saves a new database īŽ Create a new database īŽ Your first activity (before question #1) for the midterm is creating a new database. īŽ Database name: your last name + first initial of first name īŽ When you press the Save button in Access, you are saving the design of the Access objects and NOT the database itself! īŽ The Save function in Access differs from the Save function in other Windows programs.
  • 6. Characteristics of Relational DB īŽ In a relational database, each record (row) in a table must be uniquely identified. īŽ Using Primary Key īŽ A relational database is a collection of tables that are related to one another based on a common field. īŽ Using Foreign Key (& Primary Key)
  • 7. Primary Key (PK) & Foreign Key (FK) īŽ PK: A field that uniquely identifies each record in a table. īŽ SS#, Student ID īŽ It does not have to be first field. īŽ FK: A field that connects one table logically with another table īŽ Rule of Thumb: PK = FK (value) – see next slide
  • 8. Relating tables using PK and FK The primary key in the Employer table (EmployerID) is the common field that relates this table to the Position table. PositionID is the primary key in the Position table. The EmployerID field is a foreign key in this table. Primary keys can only have one occurrence in a table. Foreign keys may have multiple occurrences.
  • 9. Valle Coffee’s Restaurant DB īŽ Valle is a small distributor of inexpensive coffee beans to various restaurants. Barbara Hennessey, the Director of CRM, and her staff use Access to maintain company data such as customer orders and billing, coffee supplier orders and payments, and advertising placements and payments. Barbara has a recently developed database named Restaurant 1 to track the company’s restaurant customers, their orders, and related data such as the products they order. She asks for your help in completing and maintaining this database.
  • 10. Descriptions of Restaurant DB īŽ Valle coffee’s Restaurant 1 database will contain five tables: īŽ Customer table, which Barbara already has. īŽ Order table, which you will create soon. īŽ Product and Order Detail tables, which you will import from FineFood database. īŽ Billing Address table that is in Excel format and you will import it, and then convert to Access table.
  • 11. Creating a Order table īŽ Barbara wants to track information about each order placed by each restaurant customer. This information includes the order’s billing date and invoice amount. Barbara asks you to create a second table in the Restaurant database, named Order, in which to store the order data.
  • 12. Creating a Order table īŽ Use Design view īŽ Case sensitive īŽ NUMBER vs. number īŽ Exact match of each name īŽ Use tap key to enter data īŽ Especially, when you enter data in datasheet view.
  • 13. Access data (field) type Make certain the field type you select matches the data to be held in that field.
  • 14. Access data (field) type (con’t) Additional Access field types.
  • 15. Creating the Order table Field Name Data Type Description Field Properties OrderNum Text primary key Field size (3), Required (Yes) CustomerNum Text foreign key Field size (3) BillingDate Date/Time PlacedBy Text person who placed order Field size (25) InvoiceAmt Currency
  • 16. Adding Records to a Table īŽ Enter data sequentially in Datasheet view īŽ Do not jump from field to field īŽ Use tap key to enter data OrderNum CustomerNum BillingDate PlacedBy InvoiceAmt 323 624 02/15/2001 Mike Smith $1,986.00 201 107 01/15/2001 Matt Davis $854.00
  • 17. Modifying a Table īŽ From the Order table īŽ Delete the PlacedBy field īŽ Move the BillingDate field to the end of the table īŽ Insert the Paid as a new field between CustomerNum and InvoiceAmt (position) fields īŽ data type: Yes/No īŽ default value: No (means “unpaid”) īŽ Add following data to each filed: 211, 201, paid (mark the check box using space bar), $703.50, 01/15/2001
  • 18. Practice: Creating a DB īŽ Barbara needs a database to track the coffee products offered by Valle Coffee. She asks you to create the database by completing the following: īŽ In the initial Microsoft Access dialog box, click the blank Access database option button, and then click OK button. Click the Create button the new database. īŽ YOUR LAST NAME DB file name īŽ Display the Table window in Design view (if necessary), and then create a table using the table design shown in the next slide.
  • 19. Practice: Creating a Table īŽ Specify ProductCode as the primary key, and then save the table as Product. īŽ Add the product records shown in next slide table to the Product table. (Hint: You must type the decimal point when entering the Price field values.) Field Name Data Type Description Field Properties ProductCode Text Primary Key Field size (4), Required: Yes CoffeeCode Text Foreign Key Field size (4) Price Currency Price for this product Decaf Text D if decaf, Null if regular Field size (1), Default Value: D BackOrdered Yes/No back-ordered from supplier? Default Value: No
  • 20. Practice: Modifying a Table īŽ Add a new field between the CoffeeCode and Price fields, using these properties; īŽ Field Name:WeightCode īŽ Data Type: Text īŽ Description: foreign key īŽ Field Size: 1 īŽ Move the Decaf field so that it appears between the WeightCode and Price fields. ProductCode CoffeeCode Price Decaf BackOrdered 2316 JRUM 8.99 Yes 9754 HAZL 40.00 D Yes 9309 COCO 9.99 D No
  • 21. Practice: Updating a Table īŽ Enter these WeightCode values for the three records: A for ProductCode 2316, A for ProductCode 9309, and E for ProductCode 9754. īŽ Add a record to the Product datasheet with these field values: īŽ ProductCode: 9729 īŽ CoffeeCode: COLS īŽ WeightCode: E īŽ Decaf: D īŽ Price: 39.75 īŽ BackOrdered: Yes
  • 22. Data Integrity (PK Rule) īŽ No “null” value can be allowed. īŽ No two records can have the same primary key. īŽ No two CSUB students can have same ID number. īŽ A PK can be “composite key” īŽ Example on class web page īŽ “Composite PK Example” īŽ More than one field can be used as a PK (composite) īŽ CSUB: student ID + SS#
  • 23. Referential Integrity (FK Rule) īŽ A field that connects one table logically with another table. īŽ Exception example on class web page īŽ “PK as FK” there are two tablesâ€Ļ īŽ Related table: Shipping Address table īŽ Primary table: customer table
  • 24. Importing External Access Table and Excel Worksheet īŽ Barbara also wants you to include the Product and Order Detail tables from the FineFood database in the Restaurant database. īŽ Download and Review design view of FineFood DB first
  • 25. Importing External Access Table and Excel Worksheet (con’t) īŽ And she wants you to include the Billing Address Excel worksheet as a Access table in the Restaurant database. īŽ Before try to import the excel file, review it first īŽ Use Excel column headings for Access table īŽ PK: CustomerNum īŽ Specify in the description area of Design View that CutomerNum is not only primary key of BillingAddress table but also a foreign key of Customer table.
  • 26. Access is a relational database īŽ Access allows you to form relationships between the tables; that’s why it’s called a relational database īŽ The simplest way to create a relationship īŽ Look for identical field names between tables. īŽ Tables can be joined in three ways; one-to-one, one- to-many, and many-to-many.
  • 27. An example of a one-to-many relationship The Employer table is related to the Position table via the common field EmployerID. The Employer table has one record for EmployerID value 10126. The Position table has two records.
  • 28. A one-to-one relationship īŽ A one-to-one relationship exists when one table has one record associated with only one record of another table. īŽ As we saw from PK as FK database īŽ Shipping Address table is an related table. īŽ Primary table: customer table īŽ Primary key is also foreign key: only Access
  • 29. Using referential integrity īŽ Referential integrity allows you to maintain the integrity and consistency between related tables. īŽ If you choose to enforce referential integrity, you can insure that you will not have records that have no matching record in the primary table. īŽ The rules associated with referential integrity specify that when you update or delete a record (PK) in the primary table, a matching record (FK) in the related record must be updated or deleted.
  • 30. Use cascade update and cascade delete īŽ In referential integrity, there are two options. īŽ If you choose cascaded updates, making a change in a field that is common to two related tables will cause the update to be made in both tables. īŽ If you delete a field that is common to two tables, the deletion will take place in both tables. īŽ Enforcing Access Referential integrity Rules īŽ Try Referential Integrity Example DB on the class web page.
  • 31. Creating Relationships īŽ Download Restaurant2 file from the class web īŽ Create relationships using 5 table īŽ In terms of creating a relationship between Customer and BillingAddress, start from the Customer table. īŽ Enforce both cascade options īŽ Primary key of the Order Detail table īŽ Combination of OrderNum and ProductCode īŽ Otherwise, a duplication of the quantity field in both the Order and Product tables.
  • 32. Practice: Creating Relationship 1 īŽ Create a blank database (use any name you like) And then, import the three Excel Worksheets (Course, Instructor, and Membership) from the class web site into your Access database. īŽ Define each imported table’s primary key using information below: īŽ Course table: Class_Number īŽ Instructor table: Employee_Number īŽ Membership table: Member_Number
  • 33. Practice: Creating Relationships 2 īŽ Establish relationship based on common fields. īŽ And enforce referential integrity (apply both options) among three imported tables
  • 34. What is an Access query? īŽ You can create a query when you need ONLY a portion of the data form tables (or existing queries). īŽ For example, you may only need to see customers who live in CA. The response would be to display only the records whose state field matches with CA. īŽ Multiple tables or queries can be used. īŽ Restrictions can be used īŽ Comparison operators īŽ The design view is used to specify the fields and records you want to see.
  • 35. The Query Design view window Fields used in the query are selected from the field list and added to the design grid. You can run the query at any time by clicking the Run button.
  • 36. Creating a Sample Query īŽ Kim Carpenter, the director of marketing at the Valle, wants a list of all restaurant customers so that her staff can call customers to check on their satisfaction with Valle coffee’s services and products. She wants to have only followings; CustomerName, City, State, OwnerName, and Phone. īŽ Use restaurant 3 database īŽ Save the query as First Customer List.
  • 37. OrderNum CustomerNum Paid InvoiceAmt BillingDate 201 107 No 854.00 01/15/2001 OrderNum ProductCode Qty 201 2834 11 ProductCode CoffeeName Weight/Size Price Decaf 2301 Colombian Aged Crop 1 lb pkg 7.99 Billing Address Table Customer Table Order Table Order Detail Table Product Table CustomerNum CustomerName Street City State ZipCode OwnerName Phone FirstContact 000 Choi COB 105 CSUB CA 93311 Scott Choi 5348 09/20/2001 CustomerNum BillingName Street City State Zip 129 Sandy Lookout Restaurant PO Box 2800 Grandville MI 49468
  • 38. More about a Query īŽ When you use the query design window, you use Query By Example (QBE). īŽ Do not include any unnecessary tables or queries in Design View of the query. īŽ Otherwise, you have to deal with unexpected problems. īŽ In your midterm, you will be penalized if you include unnecessary tables or queries. īŽ Always use a primary table. īŽ CustomerNum: Customer vs. BillingAddress īŽ Restrictions can be used as well.
  • 39. Creating Queries using Multiple Tables īŽ Since there have been some major changes in the Restaurant database, Barbara wants to make sure that the database is reliable. In order to test the reliability of database query function, She wants you to generate a query. The query must include following fields: Order Number, Coffee Name, Quantity, Price, and Weight/Size. īŽ Save as Test īŽ Should select OrderNum from the Order table (primary table)
  • 40. Querying and Sorting of multiple Tables īŽ Barbara wants to have following information for the upcoming quarterly report: CustomerName, City, State, BillingDate, InvoiceAmt, Paid, and First Contact. īŽ At same time, Barbara wants to sort the records by the InvoiceAmt field in ascending order. īŽ Barbara also wants to move the Paid field between the State and BillingDate field. īŽ Save as Customer Orders
  • 41. Words begin or end with a: LIKE a* or LIKE *a Find between values: (NOT) BETWEEN 45000 AND 78000 Find exact match value: 1/10/2005 Expressions
  • 42. Find an Exact Match īŽ Barbara would like to have a list of all orders billed on 01/15/2001. īŽ The list must include following fields; OrderNum, Paid, InvoiceAmt, BillingDate, CustomerName, State, OwnerName, and Phone īŽ Save as Jan Orders
  • 43. Using Like a* īŽ Barbara wants to know a list of all Customer Names that begins with M. The list must include following fields; Customer Name, Order Number, First Contact and Billing Date. In addition, the Order Number must be sorted in ascending order. īŽ Save as Customer Name Begins With M
  • 44. Using Between ** and ** īŽ Barbara wants to know a list of all Product Code between 2465 and 2763. The list must include following fields; Product Code, Coffee Name and Price. īŽ There should a space between number and word īŽ Save as Product Code Between 2465 And 2763.
  • 45. Using Greater than (>) īŽ Barbara wants to know those records whose InvoiceAmt exceeds $2,000. īŽ Use the Customer Orders query. īŽ The query must include only following fields; Customer Name, Invoice Amount, and Billing Date. īŽ Save as High Invoice Amounts
  • 46. Using And and Or Operators The And condition. The Or condition.
  • 47. Creating And and Or conditions in the design grid And conditions must be specified on the same line. Or conditions must be specified on different lines.
  • 48. Using AND īŽ Leonard asks Barbara for a list of orders billed on 01/15/2001 that are still unpaid. He wants to know which customers are slow in paying their invoices. īŽ Use the Customer Orders query again and make sure that this query includes following fields; CustomerName, Paid, BillingDate, and InvoiceAmt. īŽ 01/15/2001 AND unpaid (No) īŽ Save as Unpaid Jan Orders
  • 49. Using OR īŽ Leonard wants to determine which restaurant customers are most valuable to Valle Coffee. Specifically, he wants to see a list of those customers who have been placing orders for many years (specifically, first contact date - earlier than 01/01/1994: <=01/01/1994 ) OR who place orders for a substantial amount of money (greater than $2,000: >2000), so that he can call the customers personally and thank them for their business.
  • 50. Using OR īŽ Make sure that this query includes following fields; CustomerName, InvoiceAmt, and First Contact. īŽ He also wants to have a sorted output in ascending order based on the customer name. īŽ If you want, you can use the Customer Orders query again īŽ Save as Top Customers
  • 51. A calculated field in the query datasheet Expression Builder adds your calculated field to the query design grid. You can then assign it a name, which will display in query datasheet view when the query is run.
  • 53. Performing Calculation īŽ Leonard is considering adding a 2% late charge to the unpaid invoices. He only wants to include following fields; Customer Name, Paid, Billing Date, and Invoice Amount. īŽ Set unpaid field to “No”
  • 54. Performing Calculation īŽ And he wants to know exactly what these charges would be. He wants to create a new field “Late Charge” right after InvoiceAmt field and then use it to calculate late charge. īŽ Late charge formula: InvoiceAmt*0.02 īŽ Save as Unpaid With Late Charge
  • 55. Using Aggregate Functions īŽ Barbara prepares a report of Valle coffee’s restaurant business for Leonard on a regular basis. The information in the report should include a summary of the restaurant invoice statistics: the total invoice amount for all orders, the average invoice amount, and the number of orders (same as number of invoice amount). She asks you to create these statistics.
  • 56. Using Aggregate Functions Access has several Aggregate Functions that can be used to calculate various statistical information. Aggregate functions are specified in the Total row of the design grid. They can be assigned by clicking the Totals button on the Query Design toolbar.
  • 57. Using Aggregate Functions īŽ She also wants you assign a new field as follows; īŽ Total of Invoices ( total invoice amount for all orders) īŽ Average of Invoices (average invoice amount) īŽ Number of Orders (number of invoice amount) īŽ Save as Invoice Statistics
  • 58. Using Record Group Calculations īŽ Barbara’s another report to Leonard also includes the same invoice statistics (total, average, and count). Because Valle Coffee sends invoices to its customers each month (Jan invoice, Feb Invoice, and March invoice), each invoice has the same billing date. Barbara asks you to display the invoice statistics for each month (billing date). īŽ Grouping by each month
  • 59. Using Record Group Calculations īŽ Calculate statistics for groups of records īŽ Average salary by the position īŽ Number of employees in each department īŽ Group By operator īŽ Divides the selected records into groups based on the values in the specified field īŽ Those records with the same value for the field are grouped together. īŽ Save as By Billing Date
  • 60. Query Practice 1 īŽ Download a database: “Roadrunner” īŽ I would like to have a query that includes following fields; Employee Number, Instructor Last Name, Instructor First Name, Course Name and Time. īŽ Save as Your Course Info. īŽ I would like to have a query that ONLY includes the male members who live in Burbank using following fields; First Name, Last Name, Gender, City, and State. īŽ Save as Males in Burbank.
  • 61. Query Practice 2 īŽ I would like to know a list of all members whose last name begins with P using following fields; First Name, Last Name, City, and State. īŽ Save as Last Names begin with P.
  • 62. Query Practice 3 īŽ I would like to know ONLY the Employee Number, Instructor Last name, Instructor First name, and the Salary Amount for only those employees who make between $39,500 and $55,000. In addition, the resulting salaries must also be placed in order from high salary to low salaries. īŽ Save as Between Salaries.
  • 63. Query Practice 4 īŽ I would like to know the Class Number, Last Name, and Member Number for each member who has a class number greater than or equal to 8900. In addition, sort last names in ascending order. īŽ Save as Greater than or equal to 8900.
  • 64. Query Practice 5 īŽ I would like to know a list of all members whose last name that begins with A or a first name that begins with R including the following fields: First Name, Last Name, City, and State. īŽ Save as Names with A or R.
  • 65. Query Practice 6 īŽ I would like to know an instructor who teaches handball and students who are taking handball course. Following fields must be appear on the query: Instructor First Name, Instructor Last Name, Course Name, Member Last Name and Member First Name. In addition, the member last names should be sorted in alphabetical order. īŽ Save as Handball Listing
  • 66. Query Practice 7 īŽ I would like to know a whole list of the Instructor Last name, Instructor First name, and the Salary Amount. Since instructors have worked hard, I would like to increase their salary by 15%. So, I’d like to calculate 15% salary increase for each instructor. īŽ Save as Salaries Increase
  • 67. Query Practice 8 īŽ I would like to know the Sum, Average, Max. and Min. of employees salary (These four items must all appear in the same query). īŽ Save as Salary Calculations īŽ I would like to know the Sum, Average, Max. and Min. of employees salary based on Employee Type. īŽ Save as Employee Type
  • 68. Forms īŽ Forms are used to customize your data entry screen. īŽ Forms are created for the convenience of the user. īŽ Forms are used to update Data Tables. īŽ You can change locations of fields and colors very easily in the Design screen.
  • 69. Creating a Form īŽ After Kim leaves for her staff meeting, Barbara asks you to create a form for the Customer table because the staff are not allowed to access the database directly. The staff members should be allowed only for entering data. But, using a form, the staff can work data easily in the table. īŽ Download “Restaurant 3” database again. īŽ Open Customer table to identify # of records (38) īŽ Create using “Form Wizard” īŽ Layout: Columnar & Style: International īŽ Save the form as Test Form
  • 70. Adding a Record into the Form īŽ Add following information as a Record No.39 customer; īŽ CustomerNum: 000 īŽ CustomerName: Your Last Name īŽ Street, City, State, and ZipCode: Your Address īŽ OwnerName: Your Full Name īŽ Phone: Your Phone Number īŽ FirstContact: 09/20/2001 īŽ A record No. 39 added to the Customer table (it’s has been altered).
  • 71. Modifying a Form īŽ Modify the Test form based on below requirements using the Design View of Form īŽ Make sure that City, State, and Zip Code are on the same line īŽ Title of field: Label box īŽ Actual entry space: text box īŽ In order to move both boxes together, place the cursor between LABEL and TEXT boxes. Then, the shape of cursor will be changed to a black colored hand.
  • 72. Modifying a Form (con’t) īŽ Put a space between words for followings: īŽ CustomerName, OwnerName, and FirstContact īŽ Change CustomerNum to Customer No īŽ Change Phone to Phone Number īŽ Add a label in the Form Header section in order to create a title of this form. The title (use label button from the Toolbox) for the form should be Customer Data Entry Form. īŽ The font size of the title should be a minimum of 20 and the title must be centered.
  • 73. Forms Practice īŽ Create a form for the Membership Table from the Roadrunner database. Begin your form with the Wizard and then modify it so that: īŽ Member Number is on the top line īŽ Last Name and First Name is on the same line īŽ Address is on a line by itself īŽ City and State are on the same line īŽ Class Number and Gender are on the same line īŽ The labels for Member Number, Last Name, Address, City, and Class Number should all be lined up vertically with the same left border/margin
  • 74. Forms Practice (con’t) īŽ The labels for First Name, State, and Gender should all line up vertically with the same left border/margin. īŽ You must also space out your fields and rows so that there is plenty of space around each field. īŽ They should not be crowded together. īŽ You should also add a label to your form in the Form Header section. The label (use label button)for your form should be Membership Data Entry Form. īŽ The font size should be a minimum of 16 point font. īŽ Your title must also be centered.
  • 75. Forms Practice (con’t) īŽ You will need to change the font color of your label text and the fill color for your label text so that your form label is easily viewable on your computer screen, given the style color/pattern that you selected for your background. īŽ Save as Membership Data Entry Form.
  • 76. Reports īŽ Reports are used to “Dress Up” or summarize your data. īŽ Reports can be made from a Table or Query. īŽ You can use a Wizard to create your reports or you can customize them to fit your needs. īŽ You can specify sorting orders and you can also group data.
  • 77. Creating a Report īŽ Kim returns from her staff meeting with another request. īŽ She wants to have a list of OrderNum, CustomerNum, Paid and InvoiceAmt. from the Order table. She’d like the information presented in a more readable format for senior managers. īŽ Create using “Report Wizard” īŽ Layout: Tabular and others īŽ Group by: CustomerNum īŽ Sort the InvoiceAmt in descending order īŽ Save the report as Order List
  • 78. Modifying a Report īŽ Insert CSUB logo upper-right corner of the report īŽ The title is Order List report. Title requirements; īŽ The title must be centered. Change background and font color. Change font size to 24. īŽ Put a space between words for followings: īŽ OrderNum īŽ CustomerNum īŽ InvoiceAmt
  • 79. Modifying a Report (con’t) īŽ Change order Num to Order No īŽ Change Customer Num to Customer No īŽ Change InvoiceAmt to Invoice Amount īŽ Widen out the heading names and field entries so that nothing is cut off. Space out your data fields as well. Also, adjust vertical alignment of each field. All words in the report must be clearly visible.
  • 80. Report Practice īŽ We will make a report that combines elements of the Instructor Table with elements from the Course Table. īŽ From the Instructor Table, your report will include Employee Number and Instructor Last Name. From the Course Table, your report will include Class Number, Course Name, and Time. īŽ You need to group by Employee Number. Class Number should be sorted in ascending order. The report is called Teaching Assignments.
  • 81. Report Practice (con’t) īŽ After you create the basic form of the report using the Wizard, we will next need to go into the design screen and customize the report. Center the title in the middle of the page. īŽ Change Employee_Number to Employee No. īŽ Change Instructor_Last to Instructor. īŽ Change Class_Number to Class. īŽ Change Course_name to Course īŽ Widen out the heading names and field entries so that nothing is cut off. Space out your data fields. All words in the report must be clearly visible.
  • 82. Preview your report before printing it Use the Print Preview option to see if the report is as you want it to be. If not, make your changes and use Print Preview again.
  • 83. Create a form with a main form and a subform īŽ Try Microsoft Forms II tutorial īŽ You can create a form with a subform on two tables that have an established relationship. īŽ When the relationship between the tables is a one- to-many relationship, the main form will consist of data from the primary table and the subform will consist of data from the related table. īŽ By selecting two related tables in the Form Wizard, you can produce a form with a subform. īŽ The form with subform is a great way to display data for tables that have a one-to-many relationship.
  • 84. Form Wizard Form/Subform dialog box Tables or queries used for the form and subform display here. Main form fields are shown here. Subform fields are shown here.
  • 85. Form and subform data īŽ Notice in the following figure that the main form contains information about the employer whose ID is 10122. īŽ The data in the subform are positions that this particular employer has available. īŽ Also notice that you have two sets of navigation buttons. You can navigate the data for either form. īŽ The outer navigation buttons apply to the main form īŽ The inner navigation buttons apply to the subform
  • 86. An example of a Form with subform The main form name appears in the title bar. The main form. The subform navigation bar. The main form navigation bar. The subform.
  • 87. Relationship of Main/Sub Form īŽ To create a form based on two tables, a relationship between the two tables must be defined first. īŽ Access Form Wizard automatically divide into main/subform format. īŽ One (customer) – to – many (Order) īŽ Primary table: Customer (main form) īŽ Related table: Order (sub form)
  • 88. Creating a Main/Sub Form īŽ Barbara wants you to create a form so that she can view the data for each customer and all the orders for the customer at the same time. The form must have following information: CustomerNum, CustomerName, OwnerName, OrderNum, Paid, InvoiceAmt, and BillingDate. īŽ Use the Form Wizard. īŽ Subform layout: Datasheet & Style: International īŽ Save as Customer (main form) and Order (subform)
  • 89. Creating an Advanced Report īŽ Kim would like to have a more friendly and easy to read report for senior managers. She needs following fields from both Customer and Order tables: īŽ CustomerNum, CustomerName, Phone, First Contact, OrderNum and InvoiceAmt īŽ View by: Customer table, Group by: CustomerNum, and Sort by: OrderNum field in Ascending order, and Layout: Stepped īŽ Modify your reportâ€Ļ..so, look NICE!! īŽ Save as Customer Orders
  • 90. Creating Web-Enabled Information īŽ Barbara feels that other employees in the company would benefit from gaining access to the Restaurant Database. Leonard asks whether the database can be made available to employees over the company network (I.e., Intranet). That way, employees could obtain company information using their desktop computers rather than using paper forms. Most employees, such as the customer representatives in the marketing department, do not need to access to the entire database, nor should they be able to make changes to the database objects.
  • 91. Creating a Static Web Page īŽ Leonard has asked you to create an HTML document for the Customer table. He wants this data to be available to customer representatives working outside the office. Leonard wants you to create static Web pages because the customer representatives need to view them only once a month to complete their monthly status reports. īŽ Select the Customer table from Restaurant Database īŽ File name: Customer īŽ Open the table using any Internet Browser
  • 92. Creating an Static Web Page īŽ Easy to create and maintain īŽ Stored outside the database īŽ Simple to publish īŽ Only reflect the state of the Customer table at the time it was created. īŽ Does not allow continuous update because it’s not linked to the Customer table on which it is based.
  • 93. Creating a Dynamic Web Page (Data Access page) īŽ Barbara asks if it’s possible to create a dynamic Web page using the Customer table that her staff members can update using their browsers. īŽ Use the Pages Objects īŽ Save as Customer īŽ A data access page is a dynamic HTML document.
  • 94. Creating a Dynamic Web Page (Data Access page) īŽ When you open a data access page, you are viewing current data from the data access page, then you can use the data access page to view or update the data in the database using a Web browser (at least MS Explorer version 5). īŽ A data access page can be stored outside the database as separate HTML documents. īŽ If a single table or query is the basis of the data access page, then you can use the data access page to update the data in the database. īŽ However, if two or more related tables are the basis for the data access page, then you can only view the data (no update).
  • 95. Importing an Html Document as an Access Table īŽ Download and then open NewRest HTML document. īŽ Close NewRest HTML document. īŽ Import NewRest HTML document into Restaurant database. īŽ Let the Access choose the primary key. īŽ Save as Potential Customers
  • 96. Importing and Exporting an XML Document īŽ Download Loans XML document. īŽ Universal way to transmit data because of the Internet īŽ Import Loans XML document into Restaurant database. īŽ Save as Loans XML īŽ Export Customer table as an XML document