Here are the steps to modify the Order table:
1. Open the Order table in Design view.
2. Select the PlacedBy field and press Delete.
3. Select the BillingDate field and drag it to the end of the table.
4. Click in the field list between CustomerNum and InvoiceAmt.
5. Select Yes/No from the data type dropdown and set the default value to No. Click OK.
6. Enter the new field name as Paid.
7. Add any test records in Datasheet view.
Report
Share
Report
Share
1 of 90
More Related Content
HARJOT.ppt
1. ICAI GHAZIABAD BRANCH OF CIRC
Submitted By- Submitted to -
Name- HARJOT SINGH Mr. Rohit Sharma
Registration no.- NRO0515631 (ITT INCHARGE)
Batch ID- ICITSSITT_GHAZIABAD_19
4. INTRODUCTION
Microsoft Access is a well-known database management system produced by
Microsoft and is part of the Microsoft 365 office suite. Microsoft Access
combines Microsoft’s relational Jet Database Engine with software
development tools and a graphic user interface (GUI). It was first released in
November 1992, so it’s been around for a while. In the rapidly changing, fast-
paced IT world, we can best describe a 30-year-old program as "venerable.“
Microsoft Access also has the distinction of being the first mass-market
database program for Windows.
Microsoft Access enables business and enterprise users to manage data and
analyze vast amounts of information efficiently. The program provides a blend
of database functionality and programming capabilities for creating easy-to-
navigate forms.
Microsoft Access is like Microsoft Excel in that you can store, edit, and view
data. However, Access has much more to offer, as we are about to see.
5. FEATURES OF MS ACCESS
Some of the key features of MS Access are:
User-Friendly Interface
MS Access provides a user-friendly interface that allows you to create and manage databases using a drag-and-
drop interface. This makes it easy to create tables, forms, queries, and reports without requiring extensive technical
knowledge.
Customizable Templates
MS Access includes a range of customizable templates that you can use as a starting point for your database. This
includes templates for inventory management, customer management, project tracking, and more.
Powerful Query Designer
MS Access includes a powerful query designer that allows you to extract specific data from tables based on user-
defined criteria. This includes the ability to sort, filter, and aggregate data from multiple tables.
Integrated Reporting Tools
MS Access includes integrated reporting tools that allow you to create professional-looking reports based on data
from one or more tables. This includes the ability to create charts, graphs, and summaries.
6. Macros For Automation
MS Access includes macros that allow you to automate common tasks in your database, such as opening forms and
running queries. This can save time and increase efficiency.
Customizable Code
MS Access allows you to write custom code using the Visual Basic for Applications (VBA)
programming language. This allows you to create custom functions and automate complex tasks.
Collaboration Feature
MS Access allows you to share your database with other users and control their access to the data. This includes the
ability to assign specific permissions to individual users or groups.
Integration With Other Applications
MS Access integrates with other applications in the Microsoft Office suite, such as Excel and Word. This allows you to
import and export data, as well as generate reports and charts using data from multiple sources.
Overall, MS Access provides a range of features that make it easy to create and manage databases, with a user-friendly
interface, powerful query and reporting tools, and the ability to automate tasks and collaborate with others.
7. Access data (field) type
Make certain the field type you select matches the data to be held in that field.
9. How to create a table in MS Access
1. Click the Create tab.
2. Click Table.
3. Click the Click to Add field heading . A list of data types appears. See the table at the end
of this lesson to learn more about your options.
4. Select the field type . When selecting a field type, select the smallest or shortest field that is
required for your data. For example, don’t choose Large Number if you only need to store a 2-digit
number.
5. Type a name for the field . To change the name of a field header, double-click the field header
type the field name you want to use.
6. Repeat Steps 3-5 to add the remaining fields to your table.
7. When you’re finished adding fields, click the Close button and click Yes to save
your changes.
8. Enter a name for your new table.
9. Click OK.
10. Table structure
A table has records (rows) and fields (columns).
Fields have different types of data, such as text, numbers, dates, and
hyperlinks.
A record: Contains specific data, like information about a particular employee
or a product.
11. Table in datasheet view
What's a web datasheet view? A web datasheet view in an Access
app displays online data arranged in rows and columns in a web
browser. It can allow data edits or not, as you prefer. When you
create a web datasheet view in Access, it opens in Design View,
where you can do any of the following: Set the record source.
By default, tables and queries open in Datasheet view. In the
Navigation Pane, right-click a table or query, and then click Open on
the shortcut menu to open the table or query as a datasheet. When
you apply specific formats to rows and columns or add a Total row, a
datasheet can also serve as a simple report.
12. Table in design view
Design view gives you a more detailed view of the structure
of the form. You can see the Header, Detail, and Footer
sections for the form. You cannot see the underlying data
while you are making design changes; however, there are
certain tasks you can perform more easily in Design view than
in Layout view.
While Datasheet view lets you work directly with the data in tables, Design view takes you
behind the scenes to work with the table structure. In Design view you have much finer
control over how the fields in your data are defined and validated. You can open a closed
table in Design view with just a few clicks.
This feature works the same in all modern versions of Microsoft Access: 2010, 2013, and
2016.
13. 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.
14. 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.
15. 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.
16. 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.
17. HOW TO CREATE A REPORT
Open the table or query you want to
use in your report.
Select the Create tab on the Ribbon.
Locate the Reports group, then click
the Report command. Access will
create a new report based on your
object.
It's likely that some of your data will
be located on the other side of
the page break. To fix
this, resize your fields. Simply select
a field, then click and drag its edge
until the field is the desired
size. Repeat with additional fields
until all of your fields fit.
18. 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.
19. HOW TO CREATE A FORM
1. In the Navigation pane, select the table you want to use to create a form. You do
not need to open the table.
2. Select the Create tab, locate the Forms group, then click the Form command.
3. Your form will be created and opened in Layout view.
4. To save the form, click the Save command on the Quick Access Toolbar.
When prompted, type a name for the form, then click OK.
20. 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.
21. 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)
22. Form Wizard Form/Sub form dialog
box
Tables or queries used
for the form and
subform display here.
Main form fields
are shown here.
Subform fields
are shown here.
23. Creating Relationships
Rules for Linking Two Tables
• Linked fields should be (almost) identical.
• Related fields must have the same data type and field size
and must contain the same kind of information.
• The primary key in one table is usually linked with a
matching field in the other table.
Fields related to an AutoNumber primary key field must be
Number fields with the Long Integer Field Size.
24. STEPS TO CREATE LINK
1.Click the Database Tools tab.
2.Click the Relationships button.
3.Click the Show Table button.
4.Double-click the table(s) you want to add.
5.Click Close.
6.Click the related field in the first table and drag it to the related field in the
second table.
7.Check the Enforce Referential Integrity option (optional).
8. Click Create.
25. 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.
26. 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
27. 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.
28. 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
29. 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
30. 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
31. 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#
32. 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
33. 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
34. 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.
35. 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.
36. 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.
37. 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
38. 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.
39. 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.
40. 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
41. Practice: Creating Relationships 2
Establish relationship based on common fields.
And enforce referential integrity (apply both options)
among three imported tables
42. 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.
43. 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.
44. 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
45. 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.
46. 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)
47. 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
48. 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
49. 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
50. 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
51. 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.
52. 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
53. Using And and Or
Operators
The And
condition.
The Or
condition.
54. 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.
55. 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
56. 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.
57. 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
58. 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.
60. 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”
61. 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
62. 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.
63. 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
64. 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
65. 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
66. 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.
67. 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.
68. 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.
69. 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.
70. 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.
71. 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
72. 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
73. 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
74. 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
75. 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).
76. 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.
77. 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.
78. 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
79. 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.
80. 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.
81. 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
82. 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)
83. 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
84. 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.
85. 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
86. 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.
87. 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.
88. 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).
89. 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
90. 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