0% found this document useful (0 votes)
54 views48 pages

Microsoft Access 2003: Advanced Level Course

Uploaded by

Muhammad Ismaeil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views48 pages

Microsoft Access 2003: Advanced Level Course

Uploaded by

Muhammad Ismaeil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

North American Edition

Microsoft Access 2003

Advanced Level Course

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 1


Installing the Northwind Database
• Northwind is a
sample database
that is included with
Access 2003.

• It contains product
and sales data for
the fictitious
company Northwind
Traders.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 2


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 3


Writing SQL Commands

SELECT { * | [column_name] [, …] }
FROM table_name;

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 4


Writing SQL Queries

SELECT [predicate] { * | [column_name] [, …] }


FROM table_name
[WHERE condition]
[GROUP BY column_name]
[HAVING group_condition]
[ORDER BY column_name];

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 5


Writing SQL Subqueries

SELECT sno, fname, lname, position


FROM staff
WHERE bno =
(SELECT bno
FROM branch
WHERE street = ‘163 Main St’);

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 6


Writing SQL Joins

SELECT b.*, p.*


FROM branch1 b INNER JOIN property_for_rent1 p
ON b.bcity = p.pcity;

SELECT b.*, p.*


FROM branch1 b LEFT JOIN property_for_rent1 p
ON b.bcity = p.pcity;

SELECT b.*, p.*


FROM branch1 b RIGHT JOIN property_for_rent1 p
ON b.bcity = p.pcity;

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 7


Inserting Data

INSERT INTO table_name [ (column_list) ]


VALUES (data_value_list);

INSERT INTO table_name [ (column_list) ]


SELECT …;

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 8


Updating Data

UPDATE table_name
SET column_name1 = data_value1
[, column_name2 = data_value2 …]
[WHERE search_condition];

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 9


Deleting Data

DELETE FROM table_name


[WHERE search_condition];

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 10


Writing SQL Queries in Access 2003

• While in Design View, go to the main menu and choose


View > SQL View to read the SQL code.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 11


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 12


Automating Tasks

• Macros are best for


performing simple tasks,
like opening and closing
forms, running reports,
and displaying custom
toolbars.

• Macros are individual


Access objects listed in
the Macros page in the
Database window.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 13


Introducing the Macro Design Toolbar

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 14


Creating Macros

• Click on Macros tab of the


Database windows.

• When in Macros page,


click on the New button to
create a macro.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 15


Testing and Debugging Macros

• Once you have created a


macro, you will have to run
it and see if it works.
• Click on Macros tab of the
Database windows.
• Select a macro from the
Macros page.
• Click on the Run button to
test a macro.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 16


Modifying Macros

• Once you have created a


macro, you can modify it.
• Click on Macros tab of the
Database windows.
• Select a macro from the
Macros page.
• Click on the Design button
to edit a macro.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 17


Conditional Programming in Macros

• Macro conditions are added to the Condition column in the


macro sheet.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 18


Adding Macros to Forms

• Once you have created a


form, you can add a
macro to it.
• Click on the Forms tab of
the Database windows.
• Select a form from the
Forms page.
• Click on the Design
button to add a macro.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 19


Adding Macros to Reports

• Once you have created a


report, you can add a
macro to it.
• Click on Reports tab of the
Database windows.
• Select a report from the
Reports page.
• Click on the Design button
to add a macro.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 20


Filtering Data

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 21


Documenting Macros

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 22


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 23


Using Macros versus Visual Basic

• Certain procedures cannot be created in Macros, so you


must use Visual Basic to write them.

• Examples of Visual Basic usages:


- Error handling
- Repetitive looping
- Custom functions
- Optimized performance, etc.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 24


Understanding Visual Basic Concepts

• Click on Modules tab of


the Database windows.

• When in Modules page,


click on the New button to
create a Visual Basic
module.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 25


Using the Visual Basic Editor Window

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 26


Getting Help with Visual Basic

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 27


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 28


Creating Data Access Pages

• Click on the Pages tab of


the Database windows.

• When on the Pages page,


click on the New button to
create a data access page.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 29


Modifying Data Access Pages

• Once you have created a


data access page, you can
modify it.
• Click on Pages tab of the
Database windows.
• Select a page from the
Pages page.
• Click on Design button to
edit a page.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 30


Sorting Data in Data Access Pages
• In the page Design view,
select the group section bar.
• Right-click the selection and
choose Group Level
Properties from the popup
menu.
• In the properties dialog box,
enter the name of the field
you want the records to be
sorted by in the DefaultSort
property box.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 31


Summarizing Data in Data Access
Pages
• The AutoSum feature in the data
access page Design view allows you
to quickly add calculated summaries
to a page.

• Click on the AutoSum tool from the


toolbar and choose from the list.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 32


Editing Data in Data Access Pages

• In data access pages (much the same as in forms), you can


use the Record Navigation Bar to add, edit and delete
records.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 33


Protecting Data in Data Access Pages

• The easiest way to


protect the data in data
access pages is to
limit the Record
Navigation Bar
functionality.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 34


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 35


Converting Databases to Access 2003

• In Microsoft Access,
incompatibility exists
between different versions
of Access, therefore you
will need to convert your
database(s) to Access
2003 in order to work on
them.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 36


Converting from
Access 2003 to Access 97
• When converting Access 2003 databases to Access 97
databases, you will lose any features and functionalities
specific to the Access 2003 version.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 37


Converting from
Access 2003 to Access 2000
• When converting Access 2003 databases to Access 2000
databases, you will lose any features and functionalities
specific to the Access 2003 version.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 38


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 39


Configuring Access 2003 Options

• Access 2003 allows


you to customize the
workplace by
configuring many
available options.

• To access the options,


choose Tools >
Options from the main
menu .

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 40


Configuring AutoCorrect Options

• AutoCorrect options will


automatically correct
misspelled words as you
type.

• From the main menu,


choose Tools >
AutoCorrect Options.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 41


Customizing Menus and Toolbars

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 42


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 43


Optimizing Databases
with the Table Analyzer

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 44


Optimizing Databases
with Performance Analyzer
• The Performance Analyzer helps you optimize a database
by analyzing all objects in the database and suggesting
ways you can improve the databases’ performance.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 45


Documenting Databases
with Documenter Analyzer
• The Documenter Analyzer helps you document databases,
which is one of most important tasks in a database
management system.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 46


Avoiding errors with the Object
Dependencies task pane
• The Object Dependencies task pane is a new Access 2003
feature that assists you in avoiding errors in your database.
• It helps you by displaying all of the objects that depend the
on the object you are currently working on, as well the
other objects that your object relies upon.

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 47


Review Questions

© 2004 Cheltenham Courseware Ltd. Microsoft Access 2003 - Slide No 48

You might also like