Professional Documents
Culture Documents
3932 PDF
3932 PDF
Level 1
Prepared By
Eng. Hosni Dakhli Mohamed
Programmer & Web Site Manager / IT Instructor
......................................................................
.............................................................
..................................................................
...............................................................
................................................... Access
...................................................... Office
.............................................. MS Access 2003
.................................................................. Tables
.........................................................................
..............................................................................
.....................................................................
....................................................................
...................................................................
.............................................................................
..............................................................................
........................................................................
..............................................................................
............................................................. Help
Page 1 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
) (Database ( MS-Access
:
.Access
.
.Access
.Access
Access
:
.
[
Page 2 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Access 2003
.
-
.
.
) .( Oracle FoxPro, Sybase,
" Database Management
"System " " DBMS .
Access :
" MDB " o " ." Microsoft Database
" MDE " o " ." Microsoft Data Encrypt
Access .
MS-Access
Access )
(
MS-Access
.mdb
.
.
LAN WAN
.
.
.
.
Page 3 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
. .
. .
. .
. .
. .
. .
. .
) :(Table
:Record
:Field
MS-Excel 2003
MS Access Start
Start All Programs Microsoft Office Microsoft Office Access 2003
MS-EXCEL 2003 Run
Start Run
msaccess
[
Page 4 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Office
Access
Office
File
Access
Page 5 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
English
Ok
Help Access
-:
--:
[
Page 6 of 52
Prepared By Eng. Hosni Dakhli Mohamed
)
create
Access Windows
Menu Bar
Database bar
Database objects Database window
Status Bar
) (objects Access
. Tables
) Fields (Columns ) Records (Rows
User .
Page 7 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Queries .
.
Forms .
Reports .
.
Pages HTML .
Macros .
.
Modules .
) Visual Basic for Application (VBA Visual
Basic
-:
MS-Access
.
) .
Tables
Rows Record Columns
. Fields
-:
. Data Sheet View
. Design Mode
. Wizard
. Import Table
. Link Table
: Create
table in design view
Tables
Create Table in Design View
[
Page 8 of 52
Prepared By Eng. Hosni Dakhli Mohamed
New
Design view .Ok
Tables New
Design View
.
Page 9 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
3
1
2
. Field Name
. Data Type
. Description
. Field Properties
- Field Name
:
.
)](.,!,[,
.
_ underscore Foundation_ID
- Data Type
Text
)
Text Field Size
Text Memo
Number
[
Page 10 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Date/time ) (
Currency
)
( Auto Number
) /
( Yes /No
Object Linking Embedded
) ( OLE Object
.Word
. Hyperlink
lookup Wizard
) (Foundations -:
Foundation_ID
Foundation_Name
Address
Reg_No
Reg_Date
Telephone
Fax
Email
Website
Activities
GFNF_member
Computer_No
MS-Access
. File Save
. Table Design
. Ctrl+S
Table Name
OK
Page 11 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Primary Key
Yes
ID AutoNumber No
Cancel .
No .
Design View
) (Datasheet View View
Datasheet View
Datasheet View Design Table
.
) (
) ( )
( . View
Design View
Table Datasheet
View
Properties
Alt+Enter
.
Orientation Right-to-left
[
Page 12 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Datasheet
View
Datasheet View .
Rows Records
.Fields
:
.
//
.
. Design View
. Governorate
Lookup Wizard :
.
) (
Next
Page 13 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Next
Finish
.
Text
:
) (
Filter
Records Filter
) Filter by Selection
Filter by Form
[
Page 14 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Table Datasheet :
: Filter By selection
Table Datasheet
Filter by Form
Filter by Form
) (
Find
)
( Edit Ctrl + F
Table Datasheet
Find What
Find Next
Match
Page 15 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Whole Field
) (
) ( .
Start of Field
.
any part of Field
.
search UP
DOWN .ALL .
datasheet view
Records Sort
Ascending
Descending
Table datasheet
Ascending
Descending
-:
Format
Font
Formatting
) (Datasheet
Font Size
Font Color
[
Page 16 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Delete record
:
. Delete .
. Table datasheet
. Delete Record
. Edit Delete Record
:
Undo
)(
) ( Design View
Datasheet View
. datasheet View ) (
Delete Column
. datasheet View Edit
Delete Column
.
Delete Row
.
. Edit Delete Row
) (
)(
. ) (
Insert Column
. Insert
Column
.
Insert Row
.
. Insert Rows
)( Field Rename
)(
. ) (
Rename Column
. Format
Rename Column
. Design View
Page 17 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Primary Key
-:
. .
. .
. ) (
.
.
-:
Design View -:
- .
- Edit . Primary Key
-
Primary Key
- Table Design
-:
Foundation_ID
Foundation_ID
:
.
OLE Object
Datasheet Create
Table by Entering Data
Field1
[
Page 18 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Wizard
Wizard Table ok
Create table by using Wizard
Business
Personal
Next
.
Import
Import table
Import Import
Page 19 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
.
....
Excel Access
.Import Get External Data File
Microsoft Excel .Files of type
Double click .Import
Sheet .Next
First Row Contains Column Headings .Next
Access
.
Next .Finish
Link Table
Link
table
Link table Link
)
(
[
Page 20 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Link
File Get External data
Link Table Import
)( Hide Column
.
. .Hide column
.
Show Column
.
Freeze Columns
.
.
.
Freeze Columns Format
. Freeze Columns
Page 21 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Field Size
Field Size
Text .
.
Long Integer
.
Integer
Byte
Single .
. single
Double . .
Format
Format
//
(yyyy/mm/dd) Format d m Day
Month Y Year
) "# "(
[
Page 22 of 52
Prepared By Eng. Hosni Dakhli Mohamed
# ) (
Format / Yes / No
) .(Yes/No or on/ Off, True/ False
Decimal places
Decimal places
) ( .....
Input Mask
)*************( Input
Mask password .
Caption
Caption
caption )
(
Default Value
Number
Default Value
)( =date
Default Value )(=time
Validation Rule
>=10
Between 0 and 100
<5
""Female" Or "male Female Male
Validation Text
Validation Rule ) (
Page 23 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
.between 0 and 100
Required
. " " Yes
. " " No
.
Indexed
:
:No .
) :Yes (Duplicates Ok .
) :Yes (No Duplicates .
Unicode Compression
: Description
.
) ( Foundations_Purposes
)Foundation_id (Number
)Purpose_id (autonumber, primary Key
)Purpose (Text, 60
Relationships
Access
) (
:
[
Page 24 of 52
Prepared By Eng. Hosni Dakhli Mohamed
.
.
.
Relationship.
:
) (
.Relationship
.Relationship
.Relationship
:
. Primary Key
. )( Foreign key
. Enforce Referential Integrity
Relationships Types
. One To Many
. Many to Many
. One to One
Relationships Types
:One to Many
)
(
:Many to Many
:one to one
.
Tools .Relationships
.Relationships
.
Page 25 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
) (Foundations
)(Foundation_purpose
-:
Foundation_id .
Foundations Foundation_Id
AutoNumber .
Foundations_purpose Foundation_Id
Number Foreign
Key
.
Foundations Primary table
) (Parent Foundations_purpose Related
).table (Child
.
Text Text
Number
.
.
.
Foundations
Foundations_purpose
Add
Add
.Close
[
Page 26 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Foundations
Foundation_id )
(
Foundation_purpose
Foundation_id
Foundation_id
Foundations
Foundation_id
Foundation_purpose
.
Edit
Relationships
Relationship type
One-To-Many
Create
Page 27 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
:
Delete
One-to-Many
Edit Relationships
) (
Edit Relationships
[
Page 28 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Cascade Update Related Fields
)
( )
" " Personal_data "
." contacts
Cascade Delete Related Record
)
.
One to One
" " :
Contacts Personal Data
Employee_ID Employee_ID
Telephone Name
Fax Address
:
. ) .( Employee_id
. " " Primary Key .
. " :" Primary Key
.
.
.
Page 29 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
:
" " Personal_data .Design View
" ." Employee_ID
" " Primary Key " " Primary Table
.
" " Contacts .Design View
" ." Employee_ID
Tools .Relationships
" " Show Table .
" " Personal_data .Add
" " Contacts Add .Close
" " Personal_data
" ." Contacts
" " Relationships :
:Enforce Referential Integrity )
(.
:Cascade Update Related Fields )
" " Personal_data "
." contacts
:Cascade Delete Related Record ) "
" Personal_data " ." contacts
( .Create
( " " One to One Save )
.( Relationships
Forms
Forms
.
In Design View
.
using wizard
[
Page 30 of 52
Prepared By Eng. Hosni Dakhli Mohamed
. ) Auto form (
Forms New
:
.
.
: ) (
Tables/Queries
Available
Fields
Page 31 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Columnar
Tabular
Datasheet
Next
)
..... (
Next
[
Page 32 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Finish
Form
Form View
Design View Access
) (
.
.
Form View
Design View
Design View
o View Design View
o
Form View
o View Form View
Form View
Navigations buttons
Page 33 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Enter
Design View
)
(
Label
Text Box
)(Foundation_ID
Label
Text Box
Tool Box
Design Form
[
Page 34 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Toolbox
Label
Text box
Objects Toolbox
Objects Tool box
) Control Wizard (
Option Group
) Toggle Button (
) ( Radio Button
) ( Check box
Combo Box
Runtime
List Box
Runtime
Command button
Page 35 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
) (
) (
Tab Control
Line Tool
Rectangle
More Controls
Design View
Design View
Forms
.Create Form in Design View
Toolbox
[
Page 36 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Control
) Wizard ( Command Button
:
Categories
Actions
Open Form
Next
Page 37 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Next
:
Next
Text
Next
[
Page 38 of 52
Prepared By Eng. Hosni Dakhli Mohamed
:
Finish
-:
Label
)
.
.Form View
.
Object . Insert
.Create from File
Browse .
Page 39 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Create
Form by using Wizard
Next
)
(
Form with subform
[
Page 40 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Datasheet
.
-:
)
....(
Page 41 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Finish
. Tools Startup
Display Form/Page
. Autoexec
[
Page 42 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Autoform
Forms
New
Table
or Query
Queries
. by using Wizard
. in Design View
) (
Queries
Queries
Create Query by using Wizard
Page 43 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
[
Page 44 of 52
Prepared By Eng. Hosni Dakhli Mohamed
:
Finish
Datasheet view .Design View
Queries
Create Query in design view
Page 45 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
Field
Table
Sort
Show
criteria
25
<=25
>=25
<25
>25
<>25
m ''*Like 'm
Between 30 and 45
.
?
J?ne June.Jane
. *
[
Page 46 of 52
Prepared By Eng. Hosni Dakhli Mohamed
. -: ]Min[!t
Mine Mind .Mint
Is null
] [
Reports
Reports
- Create Report using Wizard
- Create Report in Design
- Auto Report
) (
Reports
create Report by using Wizard New
Report Wizard
Page 47 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
:
Next
Governorate
[
Page 48 of 52
Prepared By Eng. Hosni Dakhli Mohamed
Page 49 of 52
)MS Access 2003 Material (Special Version for Resala Training Center
[
Page 50 of 52
Prepared By Eng. Hosni Dakhli Mohamed
) ( Help
Help
Help Microsoft Access Help
Search for
Enter
.
office assistant
Help
Show the Office Assistant
choose
Assistant
next
ok
.Hide
Page 51 of 52